Read xml file and convert to json