Send JSON data with Postman
Question:
How to send JSON data with Postman? Answer:
1. Select 'Body' > 'raw' > 'JSON'
2. Paste your JSON data into the textarea
Description:
Today, many applications use different API calls in client-server communication. Data is very often received and sent in JSON format. For this reason, you may need to test using the well-known Postman application to create a POST request where the data to be sent is in JSON format.
Fortunately, you can do this easily, all you need to do is follow the few steps below:
- Set the method and the endpoint URL.
- Select the Body tab
- Select the
raw
option - Select
JSON
from the available types. - Copy the JSON string into the input field.
When the above operations are performed, Postman will automatically insert Content-Type
into the Header elements, setting it to application/json
.
Now you just need to send the request by pressing the Send
button.
Reference:
Postman sending raw data reference
Share "How to send JSON data with Postman?"
Related snippets:
Tags:
send, post, json, data, form data, postman Technical term:
Send JSON data with Postman