switch from json to xml