s = """<?xml version="1.0"?>
<note>
   <to>Tove</to>
   <from>Jani</from>
   <heading>Reminder</heading>
   <body>Don't forget me this weekend!</body>
</note>"""
print(xml2json.xml2json(s))
How can i convert an xml file into JSON using python?