{"category":"data","endpoint":"https://setget.net/v1/tools/json-to-xml","examples":[{"input":{"text":"{\"user\":{\"@id\":\"7\",\"name\":\"Sam\",\"tag\":[\"a\",\"b\"]}}"},"output":{"text":"<user id=\"7\">\n  <name>Sam</name>\n  <tag>a</tag>\n  <tag>b</tag>\n</user>"}}],"input_schema":{"additionalProperties":false,"properties":{"root":{"default":"root","description":"Root tag name, used when the JSON is not an object with a single key.","type":"string"},"text":{"description":"The JSON to convert.","examples":["{\"user\":{\"@id\":\"7\",\"name\":\"Sam\",\"tag\":[\"a\",\"b\"]}}"],"type":"string"}},"required":["text"],"type":"object"},"keywords":["json","xml","convert","serialize"],"related":["xml-to-json","xml-format"],"slug":"json-to-xml","summary":"Convert JSON into indented XML. \"@name\" keys become attributes and arrays repeat the tag.","tier":"inline","title":"JSON to XML","url":"https://setget.net/tools/json-to-xml"}
