Top "Jackson-databind" questions

Use this tag for questions related to jackson-databind library providing the data-binding functionality and tree-model for Jackson.

How to convert JSON string into List of Java object?

This is my JSON Array :- [ { "firstName" : "abc", "lastName" : "xyz" }, { "firstName" : "pqr", "lastName" : "str" } ] I have this in my String …

java json jackson jackson-databind
com.fasterxml.jackson.databind.exc.MismatchedInputException: Can not deserialize instance of object out of START_ARRAY token

Getting the MismatchedInputException. Searched a lot of questions here but found JSONMappingException mostly. I don't understand if they are same …

java spring-data-jpa jackson-databind
Jackson, deserialize class with private fields and arg-constructor without annotations

It is possible to deserialize to a class with private fields and a custom argument constructor without using annotations and …

java json jackson jackson2 jackson-databind
Cannot deserialize value of type `java.util.Date` from String

Using Spring 1.5.8.RELEASE Jackson mapper giving the following exception. Cannot deserialize value of type `java.util.Date` from String "2018-09…

java spring-boot spring-mvc jackson jackson-databind
UnrecognizedPropertyException: Unrecognized field not marked as ignorable at Source: org.apache.catalina.connector.CoyoteInputStream@14ec141

I am making rest web-services my code is: @Path("/add") @POST @Produces(MediaType.APPLICATION_JSON) public Response addMembers(List<…

java json jackson jackson-databind
Jackson parsing exception -(although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value

Spring Boot Version : 1.5.10 Jackson Version : 2.9.5 Lombok Version : 1.18.0 I have a scenario where I am sending payload using kafka. On receiving …

java json parsing jackson jackson-databind
Lombok 1.18.0 and Jackson 2.9.6 not working together

The deserialization is failing after the update. I updated my micro-service from Spring 1.5.10.RELEASE to Spring 2.0.3.RELEASE and also updated …

java spring-boot jackson lombok jackson-databind
Immutable Lombok annotated class with Jackson

What is the preferred way to create class that is Immutable Can be serialized/deserialized with Jackson Human-readable and with …

java json jackson lombok jackson-databind
Jackson 3.1.1 Missing Type ID of Subtype Exception for Polymorphic Type of List?

I have a concrete object of an abstract class that I've made. I'm using annotations on the abstract class and …

java json jackson jackson-databind
Jackson java.util.Optional serialization does not include type ID

I got the following classes: @JsonIdentityInfo( generator = ObjectIdGenerators.IntSequenceGenerator.class, property = "oid" ) @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.…

spring jackson jackson-databind