Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Formatting JSON Data for Postman [closed]

Tags:

I am trying to send JSON data as POST through POSTMAN but I keep getting the following error:

enter image description here

like image 372
john doe Avatar asked Jul 25 '16 17:07

john doe


People also ask

Can we format JSON in Postman?

You can use raw body data to send anything you can enter as text. Use the raw tab, and the type dropdown list to indicate the format of your data (Text, JavaScript, JSON, HTML, or XML) and Postman will enable syntax-highlighting as well as appending the relevant headers to your request.


1 Answers

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
like image 103
TechPassionate Avatar answered Sep 20 '22 12:09

TechPassionate