{"uid":"cap_7mNIMm5FZkV8MPSBoPWMo","slug":"coco-xml-to-json-converter-ddf8e102","name":"CoCo XML-to-JSON Converter","description":"Zach Riehn's lab: an about-me and portfolio, a news desk, The Atelier for AI experiments, Launch Lab for XRP research, and Fracture for games.","url":"https://cocoeatsai.com/area4/agent/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","output"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"const":"http"},"method":{"enum":["GET"]},"queryParams":{"type":"object","properties":{"text":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"const":"json"},"example":{"type":"object","required":["json"],"properties":{"json":{"type":"object"}}}}}}},"responseSchema":{"type":"json","example":{"json":{"example":"value"}},"exampleNote":"Computed offline with demonstration inputs; time/random values are illustrative."},"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_8ORLNW73B2_1w7QmwQwZU","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 XML text to a JSON object via a simple GET request with the XML passed as a query parameter","exampleAgentPrompt":"Can you convert this XML string to JSON for me: '<user><name>Alice</name><age>30</age></user>'?","exampleUseCases":[{"title":"SOAP API response normalization","prompt":"I got back this XML from a legacy SOAP API and need it as JSON so I can process it in my app: '<order><id>1234</id><status>shipped</status><total>99.99</total></order>'"},{"title":"Config file format migration","prompt":"Convert this XML config snippet to JSON for me: '<config><host>localhost</host><port>8080</port><debug>true</debug></config>'"},{"title":"RSS feed data extraction","prompt":"I have this RSS feed XML item and need it as a JSON object: '<item><title>Breaking News</title><link>https://example.com</link><pubDate>Mon, 01 Jan 2024</pubDate></item>'"}],"resultDescription":"Returns a JSON object that mirrors the structure of the input XML, with XML elements mapped to JSON keys and values. The response wraps the converted data under a 'json' key in the response body.","failureModes":["Malformed or invalid XML input may produce an error or unexpected JSON structure","Very large XML payloads passed as a query parameter may hit URL length limits","Deeply nested or attribute-heavy XML may not convert perfectly to a flat JSON structure","Missing 'text' query parameter may result in an error response"],"whenToPreferThis":"Choose this endpoint when you have an XML string that needs to be quickly converted to a JSON object without setting up a local XML parser. Ideal for agents handling legacy API responses, configuration files, or data feeds that return XML but downstream processing requires JSON. Useful for lightweight, one-off conversions within a pay-per-call micro-service pattern.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:44:30.311Z","isFirstParty":false,"canonicalSlug":"coco-xml-to-json-converter-ddf8e102"}