# Changing the Response Body Format

**URL:** <https://community.postman.com/t/changing-the-response-body-format/6635>\
**Category:** Help Hub\
**Created:** [July 18, 2019, 3:55pm UTC](https://community.postman.com/t/changing-the-response-body-format/6635 "2019-07-18T15:55:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mericleac](https://avatars.discourse-cdn.com/v4/letter/m/258eb7/32.png) [@mericleac](https://community.postman.com/u/mericleac)\
**Post date:** [July 18, 2019, 3:55pm UTC](https://community.postman.com/t/changing-the-response-body-format/6635/1 "2019-07-18T15:55:11Z")

</div>

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**

 ![HTML_format_select](https://us1.discourse-cdn.com/getpostman/original/3X/c/0/c0377ae9d2addb396122b21d435587046f84de11.png)

**App information (please complete the following information):**

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

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [July 18, 2019, 4:31pm UTC](https://community.postman.com/t/changing-the-response-body-format/6635/2 "2019-07-18T16:31:16Z")

</div>

Hey @mericleac,

Welcome to this wonderful community 🏆

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.

 ![35](https://us1.discourse-cdn.com/getpostman/original/2X/a/ae5089d7a3cbe9f640e651235a31e3be2577004b.png)

---

<div class="post-metadata">

**Author:** ![mericleac](https://avatars.discourse-cdn.com/v4/letter/m/258eb7/32.png) [@mericleac](https://community.postman.com/u/mericleac)\
**Post date:** [July 18, 2019, 4:45pm UTC](https://community.postman.com/t/changing-the-response-body-format/6635/3 "2019-07-18T16:45:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [July 18, 2019, 7:26pm UTC](https://community.postman.com/t/changing-the-response-body-format/6635/4 "2019-07-18T19:26:01Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![paulostradioti](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/paulostradioti/32/9878_2.png) [@paulostradioti](https://community.postman.com/u/paulostradioti)\
**Post date:** [September 29, 2021, 12:46pm UTC](https://community.postman.com/t/changing-the-response-body-format/6635/5 "2021-09-29T12:46:07Z")

</div>

Hi @danny-dainton

I’m having the same problem described above. In my case, I don’t have control over the generated response Content-Type header. It comes as a custom value, something like “application/productvendorname.v3.0+text;charset=ISO-8859-1”

I would like to make Postman “map” that content type value to JSON. Is is possiblem?  
I even tried setting the visualizer to a json document, but I failed. I also tried using the test sections to se the response Content-Type header value to application/json but that seems to be readonly.

I would really appreciate any ideas.  
Thank you so much,

Paulo

---

<div class="post-metadata">

**Author:** ![sunilgaikwadv](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@sunilgaikwadv](https://community.postman.com/u/sunilgaikwadv)\
**Post date:** [November 8, 2021, 11:48am UTC](https://community.postman.com/t/changing-the-response-body-format/6635/6 "2021-11-08T11:48:14Z")

</div>

thanks this is really helpful. every time setting up the required format for response body is some how a little time taking as well as mundane especially when you know all your apis response type.
