Probably it’s a bit late but anyway..
you can rename a property just adding
@JsonProperty("contractor")
And by default Jackson use the getter and setter to serialize and deserialize.
For more detailed information: http://wiki.fasterxml.com/JacksonFAQ
More Related Contents:
- Only using @JsonIgnore during serialization, but not deserialization
- JsonMappingException: No suitable constructor found for type [simple type, class ]: can not instantiate from JSON object
- How to convert XML to JSON using only Jackson?
- Jackson – Required property?
- Converting Java objects to JSON with Jackson
- How to convert the following json string to java object?
- Make Jackson interpret single JSON object as array with one element
- Difference between @JsonIgnore and @JsonBackReference, @JsonManagedReference
- org.codehaus.jackson versus com.fasterxml.jackson.core
- Deserialize JSON to ArrayList using Jackson
- Jackson JSON Deserialization with Root Element
- Jackson – serialization of entities with birectional relationships (avoiding cycles)
- How to deserialize JS date using Jackson?
- Serializing enums with Jackson
- Jackson databind enum case insensitive
- What is the JSON View class in Jackson and how does it work?
- Ignore missing properties during Jackson JSON deserialization in Java
- Parsing JSON in Spring MVC using Jackson JSON
- How to map a nested value to a property using Jackson annotations?
- How to convert JSON string into List of Java object?
- How to enforce ACCEPT_SINGLE_VALUE_AS_ARRAY in jackson’s deserialization process using annotation
- Ignoring property when deserializing
- Jackson JSON custom serialization for certain fields
- Want to hide some fields of an object that are being mapped to JSON by Jackson
- Deserialize JSON into existing object (Java)
- How to tell Jackson to ignore empty object during deserialization?
- How to annotate enum fields for deserialization using Jackson json
- Jackson Serialize Instant to Nanosecond Issue
- How to deserialize JSON into flat, Map-like structure?
- Jackson deserialize based on type