Cannot escape call to variable in JSON body

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.

Please authenticate to join the conversation.

Upvoters
Status

Released

Board

Feedback

Tags

Bug

Date

About 1 year ago

Author

Mauro Martins

Subscribe to post

Get notified by email when there are changes.