All Questions
39,359
questions
0
votes
0
answers
40
views
How to delete duplicates in a table?
I have written a software that every second copies the contents of a JSON file from a server into a variable (serverData). Using the json-path library I extract some information from the serverData ...
-4
votes
0
answers
54
views
how to write this row mapper in better way [closed]
'm working on a Spring Batch application and have implemented a custom Partitioner to divide processing across multiple threads. I'm having trouble writing a JUnit 4 test for my partition method. I've ...
0
votes
0
answers
51
views
Could not write JSON: Infinite recursion (StackOverflowError)
I am developing a web project with spring boot using jpa, I have a problem using swagger and testing an api of mine named getAppointmentById, I tried using @JsonIgnore, @JsonManagedReference, @...
0
votes
0
answers
17
views
JSON field doesn't map to object when projection and hibernate 6.2+
I have the java app with 21 java, hibernate-core 6.1.7 dependency, postgesql.
There is book table with adverts field, which is a json-field. I don't need this field in my entity, thus I get this info ...
1
vote
1
answer
70
views
Why can't backend receive the arguments sent by the frontend [duplicate]
The frontend sends data in JSON format, but the backend receives empty data.
this is the data frontend send.
{
"user": {
"id": 0,
"imgUrl": "default.jpg&...
-5
votes
0
answers
29
views
JOLT spec to perform group by ID and condition check on nested json [duplicate]
Please help me to provide JOLT spec for the below input json. tried multiple approach but still not working
there is an condition check on risk attribute if risk is "0" then risklevel low ....
-1
votes
1
answer
75
views
Save JSON documents in ElasticSearch using ElasticsearchRepository (Java/Spring-data)
I am trying to store entities containing (only) a json String in ElasticSearch, but want the fields in the json document to be stored individually in Elastic and NOT as a single String.
I am using the ...
-1
votes
1
answer
39
views
Jackson INDENT_OUTPUT doesn't format properly - what am I doing wrong?
I've been trying to figure this out for a bit but couldn't pin-point my mistake.
I have a JSON I'd like to read into Java objects, manipulate those objects, then write them to a new JSON.
Code looks ...
0
votes
1
answer
38
views
Get HashMap value from object [duplicate]
I have a json like this
{
"data": {
"category": {
"name_en": "Trend",
"style": "normal"
},
"items"...
1
vote
1
answer
51
views
How to parse a matrix of interface objects using JSON?
I have an Item interface that is used to create and store game items. These items are stored in the player's inventory in the form of a matrix (IItem[][] inventory). When trying to implement the read ...
0
votes
0
answers
52
views
Take a single JSON object and divide it into multiple JSON objects. make API calls concurrently
The data I received is a large dynamic JSON, and I need to split it into multiple JSON objects to make API requests dynamically in Java. Each api call passes 30 objects in maximum. So if the total ...
-3
votes
1
answer
49
views
Handling nested JSON inside a field causing Unterminated object error in Java [closed]
I have a JSON string like this:
{"log":"2024-07-04T12:00:57.345665213+02:00 stdout F 2024-07-04 12:00:57,345 TRACE [http-nio-8080-exec-6] org.zalando.logbook.DefaultHttpLogWriter: {&...
0
votes
1
answer
61
views
Gson serialize null only if value equals a specific pattern
Imagine I have an object that looks like this:
@Getter
@Setter
static class MyObject {
private String firstName;
private String lastName;
private long salary;
}
and then I have:
private ...
0
votes
0
answers
39
views
How can I resolve [org.springframework.web.HttpMediaTypeNotAcceptableException: No acceptable representation] error?
I have created a REST API for user registration using Spring Boot in which I for response I'm using GenericResponse class along with ResponseEntity to manipulate the response but I'm facing
[org....
0
votes
1
answer
55
views
Parsing JSON data with GSON into a model with JPA persistence
I need to parse JSON data received from an external API and persist it using JPA annotations. I used GSON as the parser, along with a TypeAdapter, because the model has the following simplified ...