Hi,
I'm trying to use have some XML of this string
------------------------------------------------------------------------
{"info1":886,"infor2": "azesdqsd"}
------------------------------------------------------------------------
...
<from uri="restlet:/myservice/{uid}?restletMethods=get,post" />
<log message="step1 : ${body}"/>
<unmarshal ref="xmljsonWithOptions"/>
<log message="step1 : ${body}"/>
...
<dataFormats>
<xmljson id="xmljson"/>
<xmljson id="xmljsonWithOptions" forceTopLevelObject="true"
trimSpaces="true" rootName="nits" skipNamespaces="true"
removeNamespacePrefixes="true" expandableProperties="d e"/>
</dataFormats>
But, I get :
net.sf.json.JSONException: Invalid JSON String
at net.sf.json.JSONSerializer.toJSON(JSONSerializer.java:143)
at net.sf.json.JSONSerializer.toJSON(JSONSerializer.java:103)
Any idea ?
Thanks in advance.
--
View this message in context:
http://camel.465427.n5.nabble.com/xmljson-in-DSL-without-custom-format-tp5743879.html
Sent from the Camel - Users mailing list archive at Nabble.com.