Home > Enterprise >  How to send Stringified data as body in Postman?
How to send Stringified data as body in Postman?

Time:09-28

I have an IOT service in aws and it posts data to a pipeline. The data posted is in the form of string and the body contains just the string as follows:

"{\"Time_Stamp\":1662449255,\"IMEI\":\"860987053711997\",\"BPID\":\"0\",\"Warn\":\"1000\"}\r\n"

I am parsing the data to JSON and then extracting it on my server but I want to know that if I wanted to test this in postman then how do I make a request? How to send the following data as body so that I could parse it locally for debugging?

CodePudding user response:

  • First and foremost select your request type like - POST, GET, etc
  • then select Body and under the body select the 4th option raw
  • And after the 5th option there is a dropdown with text, javascript,JSON so, select JSON and paste your JSON data and call your API

CodePudding user response:

I think the solution was similar like this enter image description here

If you still need to learn more, let's take an exercise session with this collection.

Thank you

  • Related