HTTP Request send JSON as body error

Hi there,

I’m trying to insert a JSON as body in an API.

My JSON is pretty simple like that:
{“filePath” : “{“VAR”: “TEST_1”}”}

I’ve already tested this API with the body exactly like above on SoupUI and I’ve got no errors.

The problem is: when I put this body on Studio I’m getting an error like this: “Compiler Error encountered processing expression”.

I’ve researched on this forum about people facing this kind of error, and I’ve found a guy asking to put some double " on variables. Unfortunately I did this, but got no success.

Someone can give me a clue how to use that on Studio?
Thanks in advance

Your JSON is not valid.

“Error: Parse error on line 1:
{ “ filePath”: “{ “
Expecting ‘STRING’, ‘}’, got ‘undefined’”

You can verify your JSON files online here

Ty for your answer, but actually I need to use exactly the JSON in this format (despite it’s not correct). This was the reason that I told it worked on SoapUI. My legacy REST service needs a “custom JSON” like this to work out.

I’ve found a workaround to avoid this kind of verification. I’ve put all my JSON file into a string, and used that in the HTTP Response body. Doing that all “standard” format verifications was bypassed.