Convert response from XML to JSON

We are going to use Swagger-codegen which support JSON only, so
we need to do this conversion. This commit convert success
response only. Converting error response is future work.