{"category":"data","endpoint":"https://setget.net/v1/tools/xml-to-json","examples":[{"input":{"indent":0,"text":"<user id=\"7\"><name>Sam</name><tag>a</tag><tag>b</tag></user>"},"output":{"text":"{\"user\":{\"@id\":\"7\",\"name\":\"Sam\",\"tag\":[\"a\",\"b\"]}}"}}],"input_schema":{"additionalProperties":false,"properties":{"indent":{"default":2,"description":"Spaces per level. 0 gives one compact line.","maximum":8,"minimum":0,"type":"integer"},"text":{"description":"The XML to convert.","examples":["<user id=\"7\"><name>Sam</name><tag>a</tag><tag>b</tag></user>"],"type":"string"}},"required":["text"],"type":"object"},"keywords":["xml","json","convert","parse","rss","soap"],"related":["json-to-xml","xml-format"],"slug":"xml-to-json","summary":"Convert XML into JSON. Attributes become \"@name\" keys and repeated tags become arrays.","tier":"inline","title":"XML to JSON","url":"https://setget.net/tools/xml-to-json"}
