Java JSON 04 Jackson Inheritance using JsonTypeInfo

Java JSON 04 Jackson Inheritance using JsonTypeInfo

3,355 Просмотров

How to use the Jackson library to read and write an arraylist of objects of different types to a JSON file and how to correctly read the results back into memory. Demonstrates inheritance, the use of the following jackson commands. @JsonTypeInfo use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.PROPERTY,
property = "type") @JsonSubTypes @JsonIgnore

Тэги:

#@JsonSubTypes #jsontypeinfo #jsonignore #json #sub #types #type #info #ignore #jackson #maven #java #read #write #arraylist #inheritance #objects #json_jackson #java_jackson #java_jackson_json #java_jackson_json_example #java_jackson_inheritance_example #java_jackson_json_tutorial #java_jackson_library #jackson_sub_subtypes
Ссылки и html тэги не поддерживаются


Комментарии: