XML to JSON

xml-to-json · version 1.0.0 · YAML, TOML, INI, XML & TSV · free, no key needed

Convert an XML string to a JSON object.

Use when you need to: xml to json · parse xml · convert xml to json.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "xml": "<person><name>Ada</name><city>London</city></person>"
}

Response:

{
  "result": {
    "person": {
      "name": "Ada",
      "city": "London"
    }
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "xml-to-json",
  "version": "1.0.0",
  "input": {
    "xml": "<person><name>Ada</name><city>London</city></person>"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/xml-to-json/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"xml":"<person><name>Ada</name><city>London</city></person>"}'

The machine-readable contract is at /v1/tools/xml-to-json/versions/1.0.0.

CLI

node cli.mjs run xml-to-json 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.