Changing the Response Body Format

When receiving a JSON response, I change the format of the response to JSON to make it easier to analyze. However, it resets to HTML every time I receive a new response. I wish it would stay JSON until I manually switch it so that I can examine responses faster and more efficiently.

Steps to reproduce the behavior:

  1. Submit a request that gets JSON data back
    (**Note: one of the headers for this response was “text/html” however it was JSON formatted and I still wanted to view it as JSON data by default)
  2. In the response body, click “Pretty” and change the format selector to “JSON”
  3. Submit another request that gets JSON
  4. The format selector has changed back to “HTML”

Expected behavior
I would like the format to remain JSON until I manually change it, or for JSON formatted data to be interpreted as such even if the header does not state that it is.

Screenshots

App information (please complete the following information):

  • App Type: Native App
  • Postman Version: v7.3.3
  • OS: Windows 10

Hey @mericleac,

Welcome to this wonderful community :trophy:

There is a setting that you can use that will keep the language set to JSON rather than it trying to automatically set it, based on the response headers.

Thanks! This is very helpful. Will this be available for XML, HTML and Text as well? I only see the option for JSON currently.

If I understand from your use case, it feels like the API endpoint that you’re interacting with isn’t returning the correct Content-Type header.

Is this a public API or something that you have more control over?

1 Like