loading...
Cover image for How to Convert XML to JSON Without Rebuilding Your Feed

How to Convert XML to JSON Without Rebuilding Your Feed

ethanosullivan profile image Ethan O'Sullivan Originally published at Medium Updated on ・1 min read

Utilize a simple API that converts XML to JSON without coding

The Problem With XML

When it comes to APIs, XML is a well-known feed format that has been around for a while and is still used to this day. However, as summarized by Tamlyn Rhodes:

"Unfortunately, XML exists. For whatever reason, somebody once thought it was a good idea and now we're stuck with it. Since most modern applications and APIs use JSON instead, it's often necessary to convert XML into JSON..."

As such, I was having an issue with one platform when I was trying to power one of my web apps with an XML API. When I initialized the call, the platform would not pick up on the XML attribute values (such as systemCode="us-tv"). Here's an example snippet of metadata for an episode:

...

*Click Here to Read the Rest on Medium*

Discussion

pic
Editor guide