Formatting JSON Data for Postman

We could format/prettify the JSON request body within Postman.

  1. Paste the JSON request body(raw)
  2. Select JSON(application/json)
  3. Press Ctrl + B

enter image description herepaste in your json and hit the beautify button.


You can use simple quote (' or " works) :

in headers put Content-Type:application/json

formatting and using json with postman


When your JSON is validated with JSONLint this is the result:

Error: Parse error on line 1:
{ taco: { name: "",
--^
Expecting 'STRING', '}', got 'undefined'

The object keys should be strings. This is valid JSON:

{
  "taco": {
    "name": "",
    "price": "",
    "photo_url": ""
  }
}

Tags:

Postman