Convert xml to json without conversion String/Integer? Convert xml to json without conversion String/Integer? json json

Convert xml to json without conversion String/Integer?


I resolve mt problem by using the latest version of org.json.

There is a methode to do this :

JSONObject jso = XML.toJSONObject(xmlStr, true);

The boolean is using to keep the string fields.