Skip to main content
0 votes
0 answers
59 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 ...
codingTooth's user avatar
0 votes
1 answer
81 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 ...
Nicholas DiPiazza's user avatar
0 votes
0 answers
52 views

ObjectMapper mapper = new ObjectMapper() .configure(MapperFeature.SORT_PROPERTIES_ALPHABETICALLY, true) .configure(SerializationFeature.ORDER_MAP_ENTRIES_BY_KEYS, true); Map<String,...
Dasmowenator's user avatar
  • 5,528
-1 votes
1 answer
168 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 - ...
JuniorD's user avatar
0 votes
2 answers
168 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 @...
Rafael Lima's user avatar
  • 3,585
0 votes
1 answer
165 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 ...
AlexanderB's user avatar
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" ...
Sergey Tsypanov's user avatar
0 votes
0 answers
107 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((...
marcus's user avatar
  • 11
2 votes
1 answer
72 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<...
knittl's user avatar
  • 269k
0 votes
1 answer
105 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 ...
WebNoob's user avatar
  • 259
-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" : "...
Srikanth's user avatar
  • 594
0 votes
2 answers
253 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 = &...
Rafael Lima's user avatar
  • 3,585
0 votes
1 answer
623 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"...
David Kubecka's user avatar
1 vote
1 answer
91 views

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

15 30 50 per page
1
2 3 4 5
79