Legacy APIs, RSS feeds and SOAP services return XML, while most modern code prefers JSON. This converter maps elements to objects, keeps attributes and handles repeated elements as arrays, producing JSON you can use right away.
Common uses
- Turning a Kubernetes or CI YAML file into JSON for scripting
- Exporting an API response to CSV for a spreadsheet
- Typing an unfamiliar API by generating interfaces from a sample response
Frequently asked questions
- How are XML attributes represented?
- They are kept alongside child elements in the resulting object, so no information is lost.
- What about repeated elements?
- Elements that occur more than once under the same parent become an array.