Subscribe - It's FREE!!

Stay Connected Here

Stay Updated With Us Here


How to post JSON data in Postman -REST Client Chrome

Share with WhatsApp

Postman - REST Client is one of the best Google Chrome app available on the chrome store. It's Free and many developers world wide use this app/extension to test the REST API they are developing.

It provided several features which are very useful while developing and testing REST API's. 

You can test GET,PUT,POST and many other type of methods in POSTMAN but I found that many of the developers are facing issues while testing a method which requires input parameter as JSON, so I decided to share it here.

If you are not aware how to test API using POSTMAN, you can read the below docs.

Now to post JSON data, 

  • First type URL of the API
  • Change method type to POST
  • In paramter section click on "raw" tab and select format as "JSON" and add your json in the textarea provided
  • Click on "Headers" (right corner in URL line) & add "Content-Type" as header and "application/json; charset=UTF-8" as value.

(Refer below image)


Now click on "send", you will find that your request now received the json parameters you provided.

Here adding "Content-Type" in header is important which tells the MIME type (Internet media type) of the HTTP request made.

Hope you have benefited from this simple post. Thanks.

If you enjoyed this post take 5 seconds to share it! Be Socialable. :-)

Share with WhatsApp

Posts To Read Next

Swagger - Powerful Opensource Framework for RESTful API

With a Swagger-enabled API, you get interactive documentation, client SDK generation and discoverability. Swagger Editor allows you to generate code, documentation with ease.

What is Hoisting in JavaScript?

Hoisting in JavaScript, one of the most misunderstood or little understood concept in the JavaScript and remain famous as interview question for JavaScript developers and now also for angular js developer. Lets check out what it means exactly.

Visual Studio Code - Lighweight but powerful source code editor available for Windows, OS X and Linux

Visual Studio Code is a lightweight but powerful source code editor which runs on your desktop and is available for Windows, OS X and Linux. It comes with built-in support for JavaScript, TypeScript and Node.js and has a rich ecosystem of extensions for other languages (C++, C#, Python, PHP) and runtimes.

How to post JSON string as a string in jQuery AJAX

Know how to post JSON String as string to the action method of controller in MVC.

How to call click or any event only once in jQuery

Know how to execute an click event or any event only once for any element in jQuery. Perform action only once and even not required to unbind event.

Your opinion is valuable for us! Comments, suggetions are welcome.

Submit your Email Id to stay updated with us and get notified with our new posts. It's FREE!
Vu 32'' TV Vu 24'' TV
We know this popup is disturbing you!
But We would greatly appreciate if you share us with your friends below!

It will not take more than 2 seconds but will motivate us greatly to write more,share more!