# XML to JSON Converter

> XML to JSON Converter is a paid API for AI agents from intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Converts XML documents into a structured JSON element tree preserving order, attributes, CDATA, and repeated elements, with element count

## Facts

- Endpoint: GET https://intel.rallylive.ca/dev/xml-to-json
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/xml-to-json-converter-56c2701d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zl4YY5MKw16-BR21slUfJ

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability xml-to-json-converter-56c2701d
```

Example prompt: Convert this XML sitemap to JSON for me — I need the full element tree with attributes and repeated elements preserved, and a count of how many elements there are total.

## When to prefer this

Choose this endpoint when you need a faithful, structure-preserving XML-to-JSON conversion that retains attributes, CDATA, element order, and repeated elements — particularly for sitemaps, RSS/Atom feeds, SOAP bodies, and XML config files. Prefer it over generic parsers when you need the element count and a consistent tree format ({name, attrs, text, children}) for programmatic processing.

## Known failure modes

- Malformed or invalid XML input returns a parse error
- XML documents exceeding 5,000 elements may be rejected or truncated
- Missing or empty 'xml' query parameter returns a validation error
- Very large XML payloads may time out
- Non-XML content submitted as XML will fail parsing

## How this service works

XML to JSON converter producing an element tree ({name, attrs, text, children}) that preserves order, attributes, CDATA and repeated elements, plus the element count. Handles up to 5,000 elements. Sitemaps, feeds, SOAP bodies and config files. $0.01 per conversion.

## Output

Returns a JSON object containing a structured element tree where each node has 'name' (tag name), 'attrs' (attributes as key-value pairs), 'text' (text content or CDATA), and 'children' (array of child nodes), along with a top-level element count. Handles up to 5,000 elements.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/xml-to-json-converter-56c2701d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from intel.rallylive.ca](https://www.zero.xyz/host/intel.rallylive.ca/llms.txt)
