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
-
XML to JSON
$0.002
POST /api/xml-to-json
Parse XML into a JSON object tree (attributes under _attrs, text under _text; repeated elements become arrays).
-
JSON validate & format
$0.001
POST /api/json-format
Validate, pretty-print, or minify JSON. Returns parse errors with position when invalid.
Workflow
- Convert XML to JSON with xml-to-json — parses the XML structure into a JSON object.
- 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