Pprado
3 years agoOccasional Contributor
The content you are trying to view cannot be viewed as JSON
hello! I am testing a JSON format, but the response is The content you are trying to view cannot be viewed as JSON I already checked in JSON Formatter if there was something wrong, but it is ok. T...
- 3 years ago
The response payload contains HTML, not JSON.
That's why you cannot see it in the JSON tab.
If you get a JSON response, the JSON tab will be active.
Karel
- 3 years ago
Hey Pprado
you "might" be able to force the issue if your app server allows the change.
If you add an 'Accept' header to your request (that returns your html response) and the value of the 'Accept' header set as 'application/json'
Adding the Accept header into a request to force a specific datatype in the response has worked for me before. Although it all depends on if your app server will allow this.
Cheers,
Rich