I am trying to convert an xml file to JSON. In the python script, I am reading the xml file, store the tags in a dict and then dump into JSON. The issue is that some of the tag in xml file are optional. As of now i am handling it via IF-conditions. I wanted to check is there is a better way of handling this?I am trying to convert an xml file to JSON. In