I have a JAXB object as my response which in normal XML format looks like:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<RegistryObjectList ...>
<RegistryObject ...>
....
</RegistryObject>
</RegistryObjectList>
When it is marshalled to JSON I get:
{
"RegistryObject":{
...
}
}
Question is why is it not like:
{
"RegistryObjectList":{
"RegistryObject":{
}
}
}
Why is the root element not being marshalled?
--
Regards,
Farrukh
Web: http://www.wellfleetsoftware.com