Closed Dean-Christian-Armada closed 7 years ago
@Dean-Christian-Armada -- you may want to use the Yahoo convention in that case.
>>> from xmljson import yahoo
>>> from xml.etree.ElementTree import fromstring
>>> from json import dumps
>>> dumps(yahoo.data(fromstring('<p id="main">Hello<b>bold</b></p>')))
'{"p": {"id": "main", "content": "Hello", "b": "bold"}}'
Is this what you needed?
THANKS!
I am aware that the default prefix is "@". but can we remove that?