Forum Discussion

nolandsmith's avatar
nolandsmith
New Contributor
3 years ago

Working with XML APIs and Converting Response to JSON

Hello - I'm a bit new to this, but I am working with an XML API.    Even when I set the "Response content type" to application/json, the response is still in XML. Is there a way I can ensure I will...
  • chichepo's avatar
    chichepo
    3 years ago

    nolandsmith 

    I did some digging into your file and I did manage to generate a JSON response but ONLY as an example!!
    Look at the file in attachement.

    The sole response content type provided by the server is:

    Content-Type: text/xml; charset=utf-8

    and, I guess, this is the reason why it can't be displayed in JSON (message ref here)

     
    Let us know if you find a solution