1

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?

2
  • Tell us more about your constraints - on mobile, performance factors? Commented Mar 5, 2011 at 4:09
  • Not on mobile. The data is not large, so performace is not critical. Commented Mar 5, 2011 at 4:12

4 Answers 4

2

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.

Sign up to request clarification or add additional context in comments.

1 Comment

1

For xml we use simple (simple.sourceforge.net)

2 Comments

Thanks, this looks like a very interesting option. XStream seems somewhat less flexible, and it's fairly slow. Simple looks worth checking out!
1

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.

Comments

-2

Here's a good resource for json

Here's a good resource for processing xml

1 Comment

Link-only response is highly discouraged.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.