vinitkumar/json2xml

Attr Type Remove

bhavesh95863 opened this issue · 4 comments

Hello
I tried to convert JSON into XML and it's work fine but it comes with type="str". is there any way to ignore this attribute?

Hi, @bhavesh95863 Sorry for the late reply. Sadly there is no such way to ignore the type attribute for now.

@bhavesh95863 Please update to the latest version of json2xml. We have the facility to disable types from showing up on the XML.

Akhi1 commented

can you please let us know how to remove the type attribute? any specific function call?

Akhi1 commented

can you please let us know how to remove the type attribute? any specific function call?

yeah got it, here is a snippet for those who are looking for help
json2xml.Json2xml(data, attr_type=False).to_xml()