Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

api xml response to json python

import xmltodict, json

o = xmltodict.parse('<e> <a>text</a> <a>text</a> </e>')
json.dumps(o) # '{"e": {"a": ["text", "text"]}}'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #api #xml #response #json #python
ADD COMMENT
Topic
Name
1+8 =