Cannot escape call to variable in JSON body

Bug
Hello,
I’m currently trying to send a JSON to an end service that’s similar to the following
{
"t": {
"a": "a",
"b": "b",
"c": "c=${request.query.name}"
}
}
Where a, b and c are other parameters.
This causes a bug in Yaak, as Yaak attempts to resolve request.query.name inline as part of the request variable, however, this is not my intention, I simply want to sent
Pasting this in to a new request’s body simply fails to tokenize and or display the JSON body causing the following display:

I was able to circumvent the situation by pasting in
{
"t": {
"a": "a",
"b": "b",
"c": "c=\${\request\.query\.name}"
},}And removing the \ escapes, however for large JSON this is not practicable.
Windows749df338c55cd4802e29b18d3f32b4be683b6427
Would it be possible to upload a screencast of this happening? I cannot seem to reproduce it, but maybe I’m misunderstanding the issue.
For reference, Yaak’s templating uses the format
${[ … ]}so there should be no conflict with the value in your example.It seems to work when I paste that body into the app and send a request:
Hello Greg,
Thank you again for the reply,
I’ve tweaked the example ever so slightly,
Find attached a video that demonstrates the issue, I did a copy paste via both Ctrl+C/V and the right click button but included the latter for it to be more evident as to what steps I did to replicate.
I’m not using the latest master (commit hash is in the version field of this ticket) but I can try to update to latest to see if this resolves it :)
I was able to reproduce it with the example you posted here. I’ll get it fixed :)
Hello again,
Confirmed working on latest master (
1974d61aa4bee8b7fba604fc9d4d5c6d7e3f3736)
Thank you again for this project and all your help!
Have a great evening
https://yaak.app/blog/2025.2.0-beta.15
Thanks for confirming the fix!
https://yaak.app/blog/2025.2.0