{"uid":"cap_VPQ__wnnJkM9-10A5ucK6","slug":"moneytools-xml-json-converter-8c59cb33","name":"MoneyTools XML ↔ JSON Converter","description":"Catalog of MoneyTools: 116 cheap, read-only tools for AI agents. Free daily tier, then x402 USDC micropayments or prepaid credits. Token safety, approvals, tx decoding, EIP-712 risk, gas, ENS, x402 validation, DNS, RDAP, JSON Schema, time, FX.","url":"https://tools.moneytools.dev/v1/xml-json?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"string","examples":["<note><to>AI</to><body>hi</body></note>"],"description":"XML text or JSON text"},"rootName":{"type":"string","examples":["root"],"description":"wrap JSON value under this element name"},"direction":{"type":"string","description":"xml-to-json | json-to-xml (auto)"}}},"responseSchema":{"type":"json","example":{"json":{"note":{"to":"AI","body":"hi"}},"note":"Attributes prefixed with @_. No external entities fetched (SSRF-safe).","direction":"xml-to-json"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4Se55o-4Q-gxToZ3-qMN6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts XML text to JSON or JSON to XML, with auto-detection of direction and optional root element naming.","exampleAgentPrompt":"Can you convert this XML into JSON for me: <note><to>AI</to><body>hello world</body></note>?","exampleUseCases":[{"title":"Parse XML API response into JSON","prompt":"This third-party API returns XML and I need to work with it as JSON — can you convert this for me: <products><item><id>42</id><name>Widget</name></item></products>?"},{"title":"Serialize JSON config as XML","prompt":"I have this JSON object and need it as XML with 'config' as the root element: {\"host\":\"localhost\",\"port\":8080,\"debug\":true}"},{"title":"Transform RSS feed XML to JSON","prompt":"Can you convert this RSS XML feed snippet into JSON so I can process it programmatically: <rss><channel><title>My Blog</title><link>https://example.com</link></channel></rss>?"}],"resultDescription":"A JSON response containing the converted data — either a structured JSON object (when converting from XML) or an XML string (when converting from JSON). The conversion is bidirectional and direction can be auto-detected or explicitly specified.","failureModes":["Malformed XML input causes parse error and returns error response","Invalid JSON input causes serialization failure","Ambiguous direction when input is neither valid XML nor JSON","Deeply nested or very large documents may hit size limits","Missing rootName when converting bare JSON primitives to XML"],"whenToPreferThis":"Use this endpoint when you need a lightweight, cheap ($0.001 per call) serverless XML↔JSON conversion without standing up your own parser. Ideal for agents processing XML-based APIs, RSS/Atom feeds, SOAP responses, or config files that need to be interoperable with JSON-native systems. Auto-detection of direction makes it convenient when the format is already known from context.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T23:46:36.211Z","isFirstParty":false,"canonicalSlug":"moneytools-xml-json-converter-8c59cb33"}