I try to remove all xmlns tag from my json file. How to do it only with xmltodict ?
import xmltodict
import json
A = xmltodict.parse(open('JeuxTestv2.gml').read(), attr_prefix='')
with open('test.json', "wt", encoding='utf-8', errors='ignore') as f:
json.dump(dict, f, indent=4, sort_keys=True)
Json file :
{
"product A": {
"nature": "03",
"product": "aaaa",
"qualiteCategorisation": "01",
}
"xmlns:fn": "http://www.w3.org/2005/xpath-functions",
"xmlns:xs": "http://www.w3.org/2001/XMLSchema"
},