Closed JuanjoSalvador closed 7 years ago
My first idea was convert XML to JSON, but for this purpose.
XML > dictionary > JSON
This seems a good idea:
o = xmltodict.parse('<e> <a>text</a> <a>text</a> </e>') json.dumps(o) # '{"e": {"a": ["text", "text"]}}'
Instead of JSON, it is better to return an array of dicts
My first idea was convert XML to JSON, but for this purpose.
This seems a good idea: