How Do I Write a Jackson JSON Serializer & Deserializer? | Steve Hill's Development Blog
Update (12/22/2015) Considering writing serialization classes instead? Check out Serializing POJOs with Jackson.
Jackson is a great JSON serialization library for Java. Finding out how to write serializers and deserializers can be frustrating, in no small part thanks to the enormous API Jackson comes with.
Note The following is known to work with Jackson 1.8.5, which ships with RESTEasy 2.3.2.Final.
Assume we have a naive User class we're interested in writing the Serializer and Deserializer for. Not much is notable here, except for the annotations that tell Jackson who knows how to serialize and deserialize this class.
Read full article from How Do I Write a Jackson JSON Serializer & Deserializer? | Steve Hill's Development Blog
No comments:
Post a Comment