Hello,

I had a similar situation. From my google-fu, it seems like Unmarshalling
with jackson is your best bet. The 'nesting' is a bit of a curveball. I
found explicitly binding the POJO is the easiest for uniform keys- I think
your POJO structure should look something like

public class myJson{
@JsonProperty("Format")
String format;
@JsonProperty("TestData")
TestData testData;

     class TestData{
     @JsonProperty("Key with Spaces in it")
      KeyWithSpacesInIt keyWspaces;
      //setters     
      }
     ...
 //setters
 //default constructor
}
just define an object for each 'layer'.
I hope that answers it. I'm not terribly familiar with Xstream, however.



--
View this message in context: 
http://camel.465427.n5.nabble.com/JSON-to-XML-Mapping-Transformation-tp5767112p5767116.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to