I’m running a collection with the JSON datasource file, which apart from other things has this: element:
"wheelsize" : "21\" WHEELS"
When it is being loaded into iteration data, it starts to look like this:
Now when I use this variable in the request body like this, as I do with all other strings
it is obviously no good as the resulting body looks like this
"wheelsize": "21" WHEELS"
and this is not a valid JSON for the request.
As a solution I do the following - in the pre-request script:
which turns the string back into initial
and then in the body I don’t use quotes
But that is requires such special processing of each string field with quotes inside.
Is there a better way?