trying a marshall a simple xml to json using xmljson, however json-lib seems
to be returning a JSONArray instead of a JSONObject. Not sure if it is a
bug?
related entries in camel context
<dataFormats>
<xmljson id="xmljsonWithOptions" forceTopLevelObject="false"
expandableProperties="d e"/>
</dataFormats>
<marshal ref="xmljsonWithOptions"/>
<?xml version="1.0" encoding="UTF-8"?>
<root>
<aps>
<alert>this is a test message</alert>
</aps>
<key3>value3</key3>
<key2>value2</key2>
<key1>value1</key1>
</root>
[#1 - JmsConsumer[test.MyQueue]] XMLSerializer INFO Using
default type string
[#1 - JmsConsumer[test.MyQueue]] route3 INFO Got
{"aps":["this is a test
message"],"key3":"value3","key2":"value2","key1":"value1"}
--
View this message in context:
http://camel.465427.n5.nabble.com/camel-xmljson-tp5733645.html
Sent from the Camel - Users mailing list archive at Nabble.com.