Formatting JSON Data for Postman
We could format/prettify the JSON request body within Postman.
- Paste the JSON request body(raw)
- Select JSON(application/json)
- Press Ctrl + B
paste in your json and hit the beautify button.
You can use simple quote (' or " works
) :
in headers
put Content-Type:application/json
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": ""
}
}