parse XML file and will return JSON