โ08-10-2022 08:11 AM
I am receiving API response in XML and want to convert into JSON. Can anybody guide me how can I achieve the same?
โ08-10-2022 12:58 PM
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.
โ08-10-2022 01:33 PM
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.