Java JSON 04 Jackson Inheritance using JsonTypeInfo

preview_player
Показать описание
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
Рекомендации по теме
Комментарии
Автор

Its kind of demo showing everything is working but why its working, the reason and understanding behind the code is completely missing.

deepankarsingh
Автор

how do you ignore the @type inside the JSON response? I don't want it inside my JSON.

HenryLeu
join shbcf.ru