Skip to content

Expected request key variable substitution behavior #3592

Answered by jcamiel
Enoz asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Enoz

That's the intended behavior!

I've tested and effectively, with 6.0.0, interpolation is not working with JSON body when the variable are JSON keys.

You can fill an issue on it so we will fix it for the next release. As a workaround, you can use the multiline string body with a JSON "hint":

POST https://postman-echo.com/post
[Options]
variable: mykey="variable_value"
```json
{
    "hardcoded_key": "hardcoded_value",
    "{{mykey}}": "some_other_value"
}
```

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Enoz
Comment options

Answer selected by Enoz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants