Questions asking us to recommend or find a tool, library or favorite off-site resource are off开发者_运维技巧-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this questionI wonder if there is an online JSON to XML converter I can use.
Sure there is: http://www.utilities-online.info/xmltojson/
(URL fixed to moved location. This comment necessary to meet minimum edit requirements.)
Another one http://json.online-toolz.com/tools/xml-json-convertor.php
But it skips some data:
<test>
<el id="1">content</el>
</test>
you'll get
{"test":{"el":"content"}}
So id attribute will be lost.
You can try these: http://www.thomasfrank.se/xml_to_json.html
http://www.freeformatter.com/xml-to-json-converter.html
Recently I was learning EmberJS so I have built another one XML to JSON online tool. It have an option to include attributes or not.
Check it out http://dfsq.info/xml2json.
精彩评论