cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

XML to JSON conversion

bhavesh-patel
Deputy Chef III
Deputy Chef III

I am receiving API response in XML and want to convert into JSON. Can anybody guide me how can I achieve the same?

6 REPLIES 6

iwhitman
Deputy Chef I
Deputy Chef I

Is it possible to get the response in JSON in the first place? Many APIs support multiple formats.


For instance, you could try specifing request header, "Accept: application/json"?


Forgive me if this is obvious, and you've already tried it. I'm new to this community.


That's true but I am using third party APIs and they support json for request but for response they are providing it in xml only.