Powered By Blogger

Thursday, July 15, 2010

Using JSON in XML Parsing

There are a lot of ways to parse XML and present in Java objects, through a certain project I used JSON library for doing this parsing in an easy way and very straightforward.

For example you can find JAXB doing same functionality but this will requires creating Java classes models against XML schemes XSD. But JSON not requires this also it can be very efficient selection when your problem is to extract a piece of data embedded in long XML.

JSON sample code:


No comments:

Post a Comment