parse xml to json object and json object to xml