XML to JSON Converter Pro






Related Pages: JSON to XML Converter.

About XML to JSON Converter Pro:

This pro online xml to json converter tool helps you to convert raw xml format string to json format string.

More information about XML to JSON Converter:

Github: https://github.com/martinblech/xmltodict

xmltodict: http://docs.python-guide.org/en/latest/scenarios/xml/

XML to JSON Converter with Python (with package xmltodict):

import xmltodict


def convert_xml_to_json(input_str):
    dict = xmltodict.parse(input_str, process_namespaces=True)
    return json.dumps(dict, indent=4)