On 9/13/10 8:22 PM, ganges_k wrote:
Hi,
I am using Camel-SNMP in one of our requirement. Camel-SNMP process the
OID's and provide XML as the output. I want to convert this to JSON format.
is there a way to convert the output XML to JSON format?
You can convert the XML to Java Object then turn it into JSON.
Camel DataFormat[1] supports this kind of conversion.
If you have time, you can consider to write a customer code by using the
XStream[1], as it support XML and JSON out of box.
Thanks in advance.
Best Regards,
Gangadhar.Katakam
[1]http://camel.apache.org/data-format.html
[2]http://xstream.codehaus.org/
Willem