HTTP/1.1 402 PAYMENT REQUIRED agent402.base.eth · BASE · SOLANA · POLYGON · ARBITRUM · STELLAR · ROBINHOOD · USDC · USDG

XML to JSON

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

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

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.

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. Return the formatted JSON.

← All skill packs