Message Transformation for JSON
Hi, We can transform the XML format using XSLT. Likewise is there a way to transform JSON format? -- View this message in context: http://camel.465427.n5.nabble.com/Message-Transformation-for-JSON-tp5744433.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Message Transformation for JSON
Hi there, Can you please clarify the source and target data format. On Mon, Dec 9, 2013 at 3:12 AM, madusanka wrote: > Hi, > > We can transform the XML format using XSLT. Likewise is there a way to > transform JSON format? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Message-Transformation-for-JSON-tp5744433.html > Sent from the Camel - Users mailing list archive at Nabble.com. >
Re: Message Transformation for JSON
Hi, source and target data formats are also JSON -- View this message in context: http://camel.465427.n5.nabble.com/Message-Transformation-for-JSON-tp5744433p5744490.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Message Transformation for JSON
Probably it is not an optimal approach in terms of performances (how many transformations per second do you expect to perform?), but you can use xmljson (http://camel.apache.org/xmljson.html) data format to Unmarshal json to xml and use XSLT to transform, then Marshal back to Json. Check the following route to see if it helps: http://0.0.0.0:/myJsonEndpoint"; /> 2013/12/9 madusanka > Hi, > > source and target data formats are also JSON > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Message-Transformation-for-JSON-tp5744433p5744490.html > Sent from the Camel - Users mailing list archive at Nabble.com. >