Reputation: 86055
Have a bunch of classes which I need to do serialize and deserialize from/to JSON/XML at the same time. Which library you recommend to this task?
Upvotes: 1
Views: 2510
Reputation: 116472
You can do both with Jackson: core package handles JSON, and xml-databinding extension module can do XML.
There are other modules that support BSON and CSV, as well; Jackson is becoming a general-purpose data-binding tool.
Upvotes: 1
Reputation: 31012
I like Jackson for JSON, and XStream for XML. We use them both in a product and they're pretty rugged. Jackson is very fast.
Update: @radai suggests the Simple XML library, which looks pretty interesting.
Upvotes: 2
Reputation: 7961
Here's a good resource for json
Here's a good resource for processing xml
Upvotes: -2