I am developing a REST service which takes XML and JSON as an input. I am using XSD's to define the input structure when receiving request. I am having difficulties generating json input. There are multiple ways to generate json from xml but I am having a problem with lists. So I am looking for an api or a way to generate JSON from XSD. Any suggestions people.