/xml2json

🔀 Proxy server to convert XML API responses to JSON response

Primary LanguageJavaScriptMIT LicenseMIT

xml2json

🔀 Proxy server to convert XML API responses to JSON response

How to use it?

Converting XML to JSON

FAQs

What is the structure of the API response?

When converting from XML to JSON, in a success scenario the response would have a json key with the value as whatever the JSON response is generated when converting the XML response from the specified URL.

Example:
{
  "json": {
    "hello": "world"
  }
}

What conversion library is used?

The project is currently using xml-js package.

When to use it?

Whenever you encounter any third-party API (which you don't have control over) that returns an XML response, you can use this to convert it to a JSON response.

The service is down, what should I do?

It is currently hosted on my personal Netlify account under the free plan along with my other stuff, there can be a case when this can go down. The simplest solution is that you can fork this repo and host an instance of your own on whichever infrastructure you prefer to use.

Bugs or Feature requests

If you encounter any problems feel free to open an issue. If you feel the project is missing a feature, please raise a ticket on GitHub and I'll look into it. Pull requests are also welcome.

Where to find me?