0

I need a API to convert Java objects to Json and Json to Java objects. i have searched over the net where i found Gson and Jackson.

can anyone help me what the difference between them, which is the best one to use. or any other API suggestions will be helpful.

MAHI
  • 8,223
  • 10
  • 35
  • 46

1 Answers1

0

You also have Genson.

Its main advantages are ease of use, easily extensible and customizable, performance and nice features.

Some of its features are :

  • handling polymorphic types
  • ability to do things with and without annotations
  • deserialize to pojos even if they don't provide a default constructor (and really pass the values not just null) without any additional code
  • out of the box integration with Jersey (0 code)
eugen
  • 5,686
  • 1
  • 27
  • 25