When comparing google-gson vs Jackson, the Slant community recommends Jackson for most people. In the question“What are the best Java JSON Libraries?” Jackson is ranked 2nd while google-gson is ranked 3rd. The most important reason people chose Jackson is:
For most practical scenarios you can get away with annotating your Java model class, leading to lesser and cleaner code.
Ranked in these QuestionsQuestion Ranking
Pros
Pro Annotation-driven
For most practical scenarios you can get away with annotating your Java model class, leading to lesser and cleaner code.
Pro Great customizability
With its plethora of annotations and the ability to write custom Java extension points, you can manipulate a Jackson model any way you like.
Pro Integrates well with REST frameworks like Jersey
Ready-made adaptors are available for other frameworks, like jersey-media-json-jackson
Cons
Con Dependency management issues
Especially when integrating with other frameworks, a single version mismatch can wreak havoc with your application stack.
Alternative Products
