Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
0 votes
0 answers
64 views

I am trying to map a generic Java object client RequestDto to a complex Avro record that includes unions. The Situation: I have been given an Avro schema, which means I can't/shouldn't make any ...
0 votes
1 answer
83 views

Let's say you have an annotation configured on a per field basis: import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import ...
0 votes
0 answers
54 views

ObjectMapper mapper = new ObjectMapper() .configure(MapperFeature.SORT_PROPERTIES_ALPHABETICALLY, true) .configure(SerializationFeature.ORDER_MAP_ENTRIES_BY_KEYS, true); Map<String,...
-1 votes
1 answer
193 views

I am trying to build database - and i want to get data that i need from API which have an authentication token - im using Java, Spring, MySql DB I've created simple example of what i want to achieve - ...
0 votes
2 answers
186 views

I've a model class which I can't change its source, it is annotated with public class Announce { @JsonProperty(value = "id", access = JsonProperty.Access.READ_ONLY) @Id @...
0 votes
1 answer
169 views

We are migrating the Spring Boot application (mixture of Spring Data Rest with plain vanilla mvc) from version 2.5.12 to 3.4.0. The application heavily depends on the ObjectMapper configured with ...
4 votes
1 answer
4k views

I've upgraded Jackson from 2.16.1 to 2.18.2 in my build.gradle: plugins { id 'java' id 'jacoco' id 'com.github.johnrengelman.shadow' version '8.1.1' id "org.sonarqube" ...
0 votes
0 answers
120 views

I'm trying to parse a JSON string into a Map using ObjectMapper. To achieve this, I used this simple code below. ObjectMapper objectMapper = new ObjectMapper(); Map value = objectMapper.readValue((...
2 votes
1 answer
74 views

Jackson's TypeReference allows reifying the generic type parameters of a type via subclassing. Example: final var typeRef = new TypeReference<List<MyType<MyArg>>>() {}; final List<...
0 votes
1 answer
106 views

Given the following SampleTestClass where I try to parse JSON to Java: class EmptyListDeserializerTest { final ObjectMapper objectMapper = new ObjectMapper(); { objectMapper.configOverride(List....
DavidO's user avatar
  • 69
0 votes
2 answers
11k views

I have an issue while trying to parse a string value using object mapper. Below is my code, @Data @NoArgsConstructor @AllArgsConstructor public class Payload { private String id; private ...
-1 votes
1 answer
73 views

I'm looking for some help. I have a requirement to convert the input json to a java object. Input JSON is something like this { "code" : "some code", "type" : "...
0 votes
2 answers
263 views

I'm having trouble integrating Spring with Jackson. I have a POJO which has some Instant fields with a custom date format: public class C{ @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = &...
0 votes
1 answer
682 views

In my Spring Boot service, I'm using RestClient to perform REST calls. I want to ignore null values in request bodies so I set up spring: jackson: default-property-inclusion: "non_null"...
1 vote
1 answer
95 views

{ "data":{ "id":"550e8400-e29b-41d4-a716-446655440000", "timestamp":"2023年05月01日T16:34:16.993007076Z", "isProcessed":...
J.Doe's user avatar
  • 194

15 30 50 per page
1
2 3 4 5
...
79

AltStyle によって変換されたページ (->オリジナル) /