{"uid":"cap_wJZJY649bgzF1vfc2-8NH","slug":"fastx402-xml-to-json-converter-802cf60f","name":"FastX402 XML to JSON Converter","description":"200 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.","url":"https://fastx402.tools/xml-to-json?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["xml"],"properties":{"xml":{"type":"string","description":"XML text"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"data":{"type":"object","properties":{"rss":{"type":"object","properties":{"channel":{"type":"object","properties":{"item":{"type":"object","properties":{"link":{"type":"string"},"title":{"type":"string"}}},"title":{"type":"string"}}},"@_version":{"type":"string"}}}}}}}}}}},"responseSchema":{"type":"json","example":{"data":{"rss":{"channel":{"item":{"link":"https://fastx402.tools/qr-code","title":"New tool"},"title":"FastX402"},"@_version":"2.0"}}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_oEj34gxJm7wApRYPjn-Ab","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts an XML string into an equivalent JSON object, returning a structured data representation of the XML content.","exampleAgentPrompt":"Convert this XML to JSON for me: '<rss version=\"2.0\"><channel><title>My Feed</title><item><title>First Post</title><link>https://example.com/1</link></item></channel></rss>'","exampleUseCases":[{"title":"Parse RSS feed XML response","prompt":"I got an RSS feed response as XML and need it as JSON so I can process the items — here's the XML: '<rss version=\"2.0\"><channel><title>Tech News</title><item><title>AI Update</title><link>https://example.com/ai</link></item></channel></rss>'"},{"title":"Convert SOAP API XML to JSON","prompt":"This legacy SOAP service returned XML and I need it in JSON format to pass to my next pipeline step — can you convert it? '<response><status>ok</status><data><id>42</id><name>Widget</name></data></response>'"},{"title":"Transform config file format","prompt":"I have this XML config file and need it converted to JSON so I can use it in my Node.js app: '<config><database><host>localhost</host><port>5432</port></database><debug>true</debug></config>'"}],"resultDescription":"Returns a JSON object that structurally mirrors the input XML, with XML elements mapped to JSON keys, attributes preserved (prefixed with @_), and nested elements represented as nested objects. The response wraps the parsed data under a 'data' key.","failureModes":["Malformed or invalid XML input returns an error — the xml query parameter must be well-formed XML","Missing xml query parameter results in a 400-level error","Very large XML payloads may be truncated or rejected","XML with namespaces or special characters may not parse as expected"],"whenToPreferThis":"Choose this endpoint when you need a fast, no-setup, pay-per-call XML-to-JSON conversion without managing API keys or accounts. Ideal for one-off conversions in agent pipelines, processing RSS/Atom feeds, parsing SOAP responses, or transforming config files, especially when you want to pay per use in USDC on Base or Solana via x402 rather than maintaining a subscription.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T07:09:55.695Z","isFirstParty":false,"canonicalSlug":"fastx402-xml-to-json-converter-802cf60f"}