Forum Discussion

agroenen's avatar
agroenen
Occasional Contributor
6 years ago

Response can't be shown as JSON, although it should be

I'm pretty new to REST-testing, and I'm not very "technically".

SoapUI 5.5.0:

REST-response gives "The content you are trying to view cannot be viewed as JSON".

RAW gives the header and a long string, copying this string and viewing it in JSON Viewer in Notepad++ shows that it is JSON-format though. SoapUI decides that it is content-Type: application/octet-stream. 

 

Developer says that there must be something wrong with the JSON Viewer in SoapUI? 

What could be wrong?

 

  • I'm sorry, developer was wrong... It's solved.

  • nmrao's avatar
    nmrao
    Champion Level 3
    How do you, "SoapUI decides that it is content-Type: application/octet-stream"?
    • agroenen's avatar
      agroenen
      Occasional Contributor

      What is your question? 

      I don't know how this works, if I copy/paste the RAW response in Notepad++ and use JSON viewer, it shows it as JSON. So why isn't SoapUI?

      • agroenen's avatar
        agroenen
        Occasional Contributor

        I'm sorry, developer was wrong... It's solved.