How to serialize / deserialize third-party Java objects using Jackson

As an example, I would like to serialize / deserialize a single Slick2d object animation class using Jackson. What is the easiest way to do this?

+4
source share
2 answers

You can annotate the mixed interface if you want to control the generated json on third-party classes.

more details here: http://wiki.fasterxml.com/JacksonMixInAnnotations

+6
source

Like any object - pass it to objectMapper.readValue(..) / objectMapper.writeValue(..)

+3
source

All Articles