You can achieve this like that:
String brandName;
@JsonProperty("brand")
private void unpackNameFromNestedObject(Map<String, String> brand) {
brandName = brand.get("name");
}
More Related Contents:
- Converting Java objects to JSON with Jackson
- Jackson and generic type reference
- Difference between @JsonIgnore and @JsonBackReference, @JsonManagedReference
- org.codehaus.jackson versus com.fasterxml.jackson.core
- directly convert CSV file to JSON file using the Jackson library
- How can I tell jackson to ignore a property for which I don’t have control over the source code?
- Why I’m not able to unwrap and serialize a Java map using the Jackson Java library?
- Java: Jackson polymorphic JSON deserialization of an object with an interface property?
- Jackson dynamic property names
- JSON consumer of polymorphic objects
- How to serialize only the ID of a child with Jackson
- Jackson custom serialization and deserialization
- Issue with parsing the content from JSON file with Jackson & message- JsonMappingException -Cannot deserialize as out of START_ARRAY token
- How to convert JSON string into List of Java object?
- Ignoring property when deserializing
- How to produce JSON output with Jersey 1.6 using JAXB
- Jackson deserialization with unknown dynamic properties
- Jackson – deserialize inner list of objects to list of one higher level
- How to deserialize a blank JSON string value to null for java.lang.String?
- Jackson parse json with unwraping root, but without ability to set @JsonRootName
- Deserialize JSON into existing object (Java)
- Jackson list deserialization. nested Lists
- How to tell Jackson to ignore empty object during deserialization?
- Why does Jackson 2 not recognize the first capital letter if the leading camel case word is only a single letter long?
- Jackson – Deserialize Generic class variable
- Make Jackson use a custom deserializer everywhere (for a type which isn’t mine)
- How to use @JsonIdentityInfo with circular references?
- Spring-MVC 406 Not Acceptable instead of JSON Response
- Jackson throws JsonMappingException on deserialize; demands single-String constructor?
- How to rename root key in JSON serialization with Jackson