import xmltodict
def load_json(xml_path):
xml_file = open(xml_path, 'r')
xml_str = xml_file.read()
json = xmltodict.parse(xml_str)
return json
import xmltodict
def load_json(xml_path):
xml_file = open(xml_path, 'r')
xml_str = xml_file.read()
json = xmltodict.parse(xml_str)
return json