Re: How to specify types in marshalling from XML to JSON

2016-01-08 Thread Jack Ding
Hi Raul, I think I figured out how to test your suggestions. Below is my new configuration with typeHints="YES" with the attribute "type" not "jason_type":  And it works now!  Thank you very much for the assistance! On Friday, January 8, 2016 11:36 AM, Jack Ding wrote: Thanks

Re: How to specify types in marshalling from XML to JSON

2016-01-08 Thread Jack Ding
Thanks Raul for your promptly reply.  I configured the xmljson in the as instructed online document :  Apache Camel: XmlJson |   | |   |   |   |   |   | | Apache Camel: XmlJsonXML JSON Data Format (camel-xmljson) Available as of Camel 2.10 | | | | View on camel.apache.org | Preview by Yahoo | |

Re: How to specify types in marshalling from XML to JSON

2016-01-07 Thread Raul Kripalani
Hi, Have you changed any defaults of the xmljson data format? By default it comes with type hints enabled with type hints compatibility = true. I'm looking at the jsonlib docs and it seems contradictory with the value of type hints compatibility. Could you try calling your attribute json_type, or

How to specify types in marshalling from XML to JSON

2016-01-07 Thread Jack Ding
Hello, I am trying to do the XML to JSON conversion using camel-xmljson with some specified date types such as number, boolean, etc.  Example 1: input XML:  string   12345 Expected JSON: {"a":{"b":"string", "c": 12345}} You can see 12345 should be a number instead of a string.   Result JSON:{"