Json – Postman – How to pass a global variable into JSON body

jsonpostmanrequestrest

I'm working with Postman right now and I have to do a lot of requests, and in the body I'm passing a JSON content. I would like to know if is there a way to pass the value of a global variable into JSON body. Thank you.

Best Answer

If using a raw JSON body:

{
    "test key":"{{global variable}}"
}

On sending the request, the curly braces will be replaced with the value of the variable.