HTTP/1.1 402 PAYMENT REQUIRED · Agentic Finance (AIFI) · x402 + MPP dual-stack 500+ tools · 12 rails · 0% seller fee

XML to JSON

Convert XML to JSON and pretty-print it - the 'legacy API response to modern format' workflow in one call.

$0.050 per call · one payment for the whole workflow
POST /api/skill/xml-json

3 tools run server-side in one request. You pay once, settle once, and get a single response - no orchestration, no per-step payments, and a partial-success envelope if any step fails. USDC over x402 on any supported chain.

When to use this pack

An agent received XML (from a SOAP service, RSS feed, or legacy API) and needs clean formatted JSON. The chain converts then pretty-prints for readability.

Tools in this pack

All 3 run inside the single $0.050 call above. Each is also callable on its own if you only need one part.

Workflow

  1. Convert XML to JSON with xml-to-json - parses the XML structure into a JSON object.
  2. Pretty-print the result with json-format - indented, readable JSON for inspection or downstream use.
  3. Validate the converted JSON with json-validate - confirms the XML parsed into well-formed JSON (no truncation, no dangling structure) before you hand it to a downstream consumer that would choke on malformed input.

Call it directly

Any x402 client pays the 402 and gets the whole workflow back in one response:

npx agent402-client call xml-json {"xml":"<root><item>hello</item></root>"}

Run it in Claude

claude mcp add agent402 -s user -- npx -y agent402-mcp@latest

Then paste this prompt into Claude:

Convert XML to JSON using Agent402: (1) xml-to-json {xml:"<root><item>hello</item></root>"} - parse. (2) json-format on the result - pretty-print. (3) json-validate on the result - confirm well-formed. Return the formatted, validated JSON.

← All skill packs