change rest xml to json.