I have an XML file which I want to convert into JSON file using python, but its nt working out for me.
You can try to use xmljson. The code for the same is
from xmljson import badgerfish as bf from xml.etree.ElementTree import fromstring s = ''' Tove Jani Reminder Don't forget me this weekend! ''' json.dumps(bf.data(fromstring(s)))