The request body is not valid JSON. How to send JSON in Postman?

How should I send API call using JSON in Postman ? I am getting error "The request body is not valid JSON".
0
give a positive ratinggive a negative rating
01 Feb 2023 at 06:10 PM
Hi,

Error notification "The request body is not valid JSON" is most probably caused by using of incorrect content type. But first, you should check the JSON format (if brackets, quotes, commas are used in a correct way).

Then you should check the body settings. You should choose raw as a content type and select JSON:

postman how to send post api json

You can also check the content type in headers, by changing the content-type to application/json.
2
give a positive ratinggive a negative rating
07 Feb 2023 at 07:13 PM
Tim
Share on FacebookShare on TwitterShare on LinkedInSend email
x
x
2024 AnswerTabsTermsContact us