All Questions
39,376
questions
0
votes
0
answers
9
views
MultiPart Request Spring
How can I make a breakpoint in my api to receive a request with json + file using Spring?
I've already tried using RequestParam, RequestBody and RequestPart, but none of it worked. It works to receive ...
0
votes
1
answer
42
views
Kotlin data structure for efficient lookup of nested data
I am currently working on an application that needs to create a mapping between document pdfs and corresponding JSON data files. The files are coming from a third party so I have no control over their ...
1
vote
2
answers
35
views
Jackson Deserialization - Treat specific string values as being null
I am working with an external API and have generated the Java client classes using the OpenAPI generator. One of the fields defined in the response is marked as being of a date type as shown below and ...
-2
votes
0
answers
23
views
Retorno do método save() do JPA Repository retorna as classes de composição como nulas [closed]
Criei a seguinte entidade e DTO:
@Entity
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Lancamento {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private long id;
@NotBlank
@...
-1
votes
1
answer
31
views
Mapping Java objects using FasterXML JsonProperty with multiple unknown keys of the same structure [duplicate]
I have a JSON object structured like this:
{
"John": { ...Some JSON object... },
"Mary": { ...Some JSON object... },
"Sam": { ...Some JSON object... }
}
The ...
-2
votes
0
answers
21
views
Retrieve a specific value from JSON array using jackson [duplicate]
I'm trying to retrieve an specific attribute from a JSON that I got from an API response directly into a java object using jackson, but when I print it returns null.
The attribute in question is "...
0
votes
0
answers
41
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
61
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
52
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
81
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
40
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"...