before changing json to xml