XML to JSON

XML to JSON

What this does

Parses XML and produces JSON. Elements become keys, repeated elements become arrays, attributes are kept under a prefixed key (@name), and text content under #text when an element has both.

When to use it

  • Working with an XML API in a JavaScript or Python project.
  • Reading an RSS feed or a sitemap as data.

Good to know

XML has no lists or types, so a single child and a repeated child look different in the output. Check the array option if you need consistency.


Avatar

James Smith

CEO / Co-Founder

Enjoy the little things in life. For one day, you may look back and realize they were the big things. Many of life's failures are people who did not realize how close they were to success when they gave up.

Cookie
We care about your data and would love to use cookies to improve your experience.