http://jettison.codehaus.o
http://xstream.codehaus.or
If you need I also have references for JavaScript or XSLT2 libraries that do that
Main Topics
Browse All TopicsI am looking for Java code that I can use (i.e. open source) to convert a JSON string into XML.
I don't care so much about having a lot of control on how the conversion is done, as once I have XML, I can easily transform it with XSLT.
Any recommendation?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
http://jettison.codehaus.o
http://xstream.codehaus.or
If you need I also have references for JavaScript or XSLT2 libraries that do that
@abel, thank you for responding. I have been looking at the two links you mentioned:
1) http://www.p6r.com/article
The P6R code in C++ , so that won't work for me, but maybe other people reading this will find it useful.
2) http://www.virtual-tech.ne
This is some very simple (= good!) code that uses Prototype. I don't fancy Prototype, but maybe will run with the idea. (I would have preferred a more robust, server-side solution to this.)
> I would have preferred a more robust, server-side solution to this
basically, the reason I mentioned, is that the same technique could be applied using java (or c# or whatever) on the server side. The simplicity was chosen because it makes it easier to adopt it for yourself, at least, that was the intention :)
@Gertone,Jettison seems the way to go. Also see this example from the XStream FAQ:
http://xstream.codehaus.or
I will some experiments with this, and will report on it.
Business Accounts
Answer for Membership
by: abelPosted on 2009-05-11 at 00:27:36ID: 24352196
Here's one possibility: http://www.p6r.com/article s/2008/05/ 06/xslt-an d-xpath-fo r- json/
this is perhaps simpler: http://www.virtual-tech.ne t/resource s/json2xml .html. It contains a small JavaScript snippet (yes, I know you use Java), that shows how to parse the JSON code into XML. See the source of that page (the popup shows only the output).
But