It is not possible to add comments to the JSON body directly, but there is an indirect way to do this in Postman. It does like this:

Replace the entire body with a variable like {{jsonBody}}

In the pre-request script, do the following:

const body = {
“name”: “John”,
“age”: “29” // this must be a string!
};
pm.globals.set(“jsonBody”, JSON.stringify(body));

#json #code #video #postman

Add comments to JSON body in Postman
46.80 GEEK