I am using Postman v6.1.3 to send a POST query in JSON format and results are successfully returned in HTML format. However, when I try to change the output to also show in JSON format, I always get the error message Unexpected ‘<’. I’ve run the same JSON query through another tool, so I believe it is correct and the HTML does return correctly. This also worked before I got a new laptop and re-installed the Postman software. Am I missing something?
@KenBuckman What is the response type? Is it HTML or JSON?
If it’s HTML, it can’t be viewed in JSON format and thus the error is showing up.
@postman-harryi3t, Thanks for your follow up. I was able to resolve the issue, which was related to an incorrect target URL in the Post command.