Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
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 ...
Guilherme Fernando Goebel's user avatar
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 ...
pbuchheit's user avatar
  • 1,663
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 ...
Leon's user avatar
  • 538
-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 @...
brunomouro's user avatar
-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 ...
Kevin2566's user avatar
  • 423
-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 "...
Phillipe Wolff's user avatar
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 ...
Bishop's user avatar
  • 1
-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 ...
abhijat mishra's user avatar
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, @...
Nguyen Le Hoang Chinh Chinh's user avatar
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 ...
Anna L's user avatar
  • 1
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&...
sleepawhile's user avatar
-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 ....
Manjunath k's user avatar
-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 ...
Richard's user avatar
  • 112
-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 ...
anon's user avatar
  • 31
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"...
SugarSecret's user avatar

15 30 50 per page
1
2 3 4 5
2626