{"uid":"cap_mTq9ElwrAUt_M2l4V6d4I","slug":"json-to-xml-converter-a5cc4b04","name":"JSON to XML Converter","description":"Convert a JSON object to XML","url":"https://x402render-u5vwpxpyua-uc.a.run.app/json-to-xml","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"data":{"type":"object","description":"object"},"root":{"type":"string","description":"string (optional)"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8tvDZN00GHm-CUg5MnuiE","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a JSON object (as a string) into an XML document, with an optional custom root element name","exampleAgentPrompt":"Convert this JSON string to XML with 'catalog' as the root element: '{\"item\":{\"id\":\"1\",\"name\":\"Widget\",\"price\":\"9.99\"}}'","exampleUseCases":[{"title":"Feed legacy SOAP service","prompt":"I have a JSON object from our product API and need to send it to a legacy SOAP service that only accepts XML — can you convert '{\"product\":{\"sku\":\"ABC123\",\"qty\":50}}' to XML with 'inventory' as the root element?"},{"title":"Export config as XML file","prompt":"Take this JSON config '{\"server\":{\"host\":\"localhost\",\"port\":\"8080\",\"debug\":\"true\"}}' and convert it to XML with 'config' as the root element so I can save it as a settings file."},{"title":"Interop with XML-only partner API","prompt":"Our partner system only accepts XML — please convert '{\"order\":{\"id\":\"ORD-99\",\"customer\":\"Acme\",\"total\":\"250.00\"}}' into XML using 'order' as the root tag."}],"resultDescription":"Returns an XML-formatted string representing the input JSON object, wrapped in the specified root element (or a default root if not provided). The output is a well-formed XML document that mirrors the structure and values of the input JSON.","failureModes":["Invalid or malformed JSON string in 'data' field returns an error","Missing required 'data' field causes a bad request error","Deeply nested or complex JSON structures may produce unexpected XML nesting","JSON arrays may not serialize cleanly into XML without special handling","Non-string values in JSON may require type coercion for valid XML"],"whenToPreferThis":"Use this endpoint when you need a quick, pay-per-call JSON-to-XML conversion without setting up a local library or dependency. Ideal for agents integrating with legacy systems, SOAP services, or any XML-only partner APIs that require transformed input from modern JSON-based sources.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:49:23.239Z","isFirstParty":false}