{"slug":"toolshed-lemon-agent-dev-convert-xml-json-7b01ec","title":"XML to JSON","host":"toolshed.lemon-agent.dev","method":"POST","resource":"https://toolshed.lemon-agent.dev/convert/xml-json","category":"other","description":"XML to JSON. POST an XML document; the response is JSON in fast-xml-parser's convention — attributes prefixed @_, text content under #text, and repeated sibling elements collapsed into an array (so an element appearing once is an object and twice is an array). Values stay strings; no type guessing. ","price_listed":0.006,"price_asked":0.006,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":29,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":"<shed><tool id=\"1\">lemon</tool></shed>","bodyType":"text","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"description":"the raw XML file as the request body, up to 256 KB","maxLength":262144,"type":"string"},"bodyType":{"const":"text","type":"string"},"method":{"const":"POST","type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"additionalProperties":false,"properties":{"example":{"description":"the sample request body above, converted — what a the converted JSON file as the response body (application/json) looks like","type":"string"},"format":{"const":"application/json","description":"the converted JSON file as the response body (application/json)","type":"string"},"type":{"const":"text","type":"string"}},"required":["type","format"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-09-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.006,"price_match":true,"latency_ms":29,"error":null}],"description_full":"XML to JSON. POST an XML document; the response is JSON in fast-xml-parser's convention — attributes prefixed @_, text content under #text, and repeated sibling elements collapsed into an array (so an element appearing once is an object and twice is an array). Values stay strings; no type guessing. A document carrying a <!DOCTYPE> is refused, because internal entities are an expansion attack.","last_updated":"2026-09-02T14:57:11.271Z","schemes":["exact"]}