Forum Discussion

trivenim's avatar
trivenim
Occasional Contributor
10 years ago

SoapUI 5.2.1-REST Service's JSON response not displayed in JSON view

Hi,   When I execute REST service in Soap UI 5.2.1 Open source, the respective JSON response is not displayed in JSON view and instead below message is displayed.   "The content you are trying to...
  • kondasamy's avatar
    10 years ago

    I'm not sure about the exact cause; but, I guess the issue is with the response Content-Type which holds "text/plain;charset=ISO-8859-1". Hence, SoapUI doesn't detects in the JSON response viewer.I just tried with one of my REST service and SoapUI displayed perfect JSON view with the Content-Type - application/json

     

     

    HTTP/1.1 200 OK
    Content-Type: application/json; charset=UTF-8
    Date: Tue, 10 Nov 2015 03:37:56 GMT
    Expires: Wed, 11 Nov 2015 03:37:56 GMT

    When I tried to reproduce your scenario, with response Content-Type as "text/plain", the JSON response viewer displays "The content you are trying to view cannot be viewed as JSON".

     

    As suggested by nmrao, please check with the service provider to match the Content-Type that suits with Front-end application.

     

    Thanks,

    Samy

     

    Did my reply answer your question? Give Kudos or Accept it as a Solution to help others, Thanks. ↓↓↓

     

  • nmrao's avatar
    nmrao
    10 years ago
    I think the value which was to Content-Tye may not valid. i.e., application/Json instead of application/json; charset=UTF-8, charset can be whatever supported. Could be an issue with case sensitivity(Your case it is Capital Json instead of all small json)