Top "Jackson" questions

Jackson is a Java library for handling tasks like reading and writing (parsing / generating) and data binding to/from Java objects.

Jackson with JSON: Unrecognized field, not marked as ignorable

I need to convert a certain JSON string to a Java object. I am using Jackson for JSON handling. I …

java json data-binding jackson
How to use Jackson to deserialise an array of objects

The Jackson data binding documentation indicates that Jackson supports deserialising "Arrays of all supported types" but I can't figure out …

java json jackson
How to tell Jackson to ignore a field during serialization if its value is null?

How can Jackson be configured to ignore a field value during serialization if that field's value is null. For example: …

java jackson
Representing null in JSON

What is the preferred method for returning null values in JSON? Is there a different preference for primitives? For example, …

json jackson gson
Ignoring new fields on JSON objects using Jackson

I'm using Jackson JSON library to convert some JSON objects to POJO classes on an android application. The problem is, …

java json jackson
Date format Mapping to JSON Jackson

I have a Date format coming from API like this: "start_time": "2015-10-1 3:00 PM GMT+1:00" Which is YYYY-DD-MM HH:…

java json date jackson pojo
JsonMappingException: No suitable constructor found for type [simple type, class ]: can not instantiate from JSON object

I am getting the following error when trying to get a JSON request and process it: org.codehaus.jackson.map.…

java json spring annotations jackson
Converting Java objects to JSON with Jackson

I want my JSON to look like this: { "information": [{ "timestamp": "xxxx", "feature": "xxxx", "ean": 1234, "data": "xxxx" }, { "timestamp": "yyy", "feature": "yyy", "…

java json object jackson
When is the @JsonProperty property used and what is it used for?

This bean 'State' : public class State { private boolean isSet; @JsonProperty("isSet") public boolean isSet() { return isSet; } @JsonProperty("isSet") public void …

java ajax jackson
Can not deserialize instance of java.util.ArrayList out of START_OBJECT token

I'm trying to POST a List of custom objects. My JSON in request body is this: { "collection": [ { "name": "Test order1", "…

java spring jackson jax-rs resteasy