Skip to content
Fourohtwo

XML to JSON converter

agent-data-tools.revmesh2074.workers.dev/xml/to-json

XML to JSON converter. XML to JSON for any XML document: attributes become "@name" keys, text becomes "#text" (or the value itself when an element only holds text), and repeated child elements become arrays. DOCTYPEs and external entities are refused, so nothing outside the document is ever loaded. Up to 100,000 characters. Use to read XML feeds, SOAP responses and config files in an agent.

BasePolygonArbitrumSolanaAnswering
GEThttps://agent-data-tools.revmesh2074.workers.dev/xml/to-json

Uptime100% of 2 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agent-data-tools.revmesh2074.workers.dev/xml/to-json?xml=%3Corder+id%3D%227%22%3E%3Citem+sku%3D%22a1%22%3EPen%3C%2Fitem%3E%3Citem+sku%3D%22b2%22%3EInk%3C%2Fitem%3E%3C%2Forder%3E");
console.log(await res.json());

Example input

{
  "xml": "<order id=\"7\"><item sku=\"a1\">Pen</item><item sku=\"b2\">Ink</item></order>"
}