camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sarfaraj <>
Subject Issue in JSON marshalling
Date Fri, 03 May 2013 13:03:20 GMT
I have camel route which exposes web service. I want to accept a data from
web client and convert to JSON object.
Curently i am using SOAP UI to send input to above web service.

# Here is my input.......
  # My camel route is

                        <json id="jack" library="Jackson" />

                <route id="tcaRoute">
                        <from uri="cxf:bean:soapEndpoint" />
                        <marshal ref="jack" />
                        <to uri="file:src/main/resources/out.txt" />
After running this, I get following Output i.e JSON data 

So instead of [{"id":1,"name":"abc"}] , I need
{"*myData*":{"id":1,"name":"abc"}}	 because id and name are member of myData
Here it only return class member not the class. 
Addition to above i also want to remove "[]" from JSON output.

*Could some one tell me what changes i need to do on JSON data format to
achive this?*

/Note: i referred


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message