It's not a secret anymore!*
The moose likes XML and Related Technologies and the fly likes could not convert the xml to json using java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "could not convert the xml to json using java" Watch "could not convert the xml to json using java" New topic
Author

could not convert the xml to json using java

gopal krishnan
Greenhorn

Joined: Dec 17, 2007
Posts: 18
i have the xml file, i need to convert into the json. the json output is the partial convert of the xml, not whole xml is converted..

Reason you can find the output of the json, only partial is being converted. remaining portion is omitted.


OUTPUT
============




INPUT XML FILE
=============






Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1648
    
    7

I moved this to the XML forum for you as I don't see any relevance to Spring.


[How To Ask Questions][Read before you PM me]
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

It's true that the JSON representation is much harder to read than the XML representation, but after I worked my way through it I couldn't see anything in the XML which wasn't in the JSON. But perhaps I didn't read carefully enough? What part of the XML do you think is missing from the JSON?
gopal krishnan
Greenhorn

Joined: Dec 17, 2007
Posts: 18
Thanks for your reply, it's just the order of parsing in the xml to json being changed..
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Good. Problem solved then?
gopal krishnan
Greenhorn

Joined: Dec 17, 2007
Posts: 18
yes the problem is resolved.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: could not convert the xml to json using java