Nested JSON in REST call

What is the syntax to call a nested JSON on REST call HTML body??

{“person”: { “name”: “John doe”}}

What would be the correct call to sendRequest? The following gives a 500 response.

WS.sendRequest(findTestObject(‘getname’, [(‘name’) :]))

you mean something like:

WS.sendRequest(findTestObject('getname', [('person'):[('name') :]]))


Just tried that syntax, still getting a 500 error.

I am following the first example from here :

in the POST object i am inserting the following for html body
{“person”: { “name”: ${name}}}

{"person": { "name": "${name}"}}
andWS.sendRequest(findTestObject('getname', [('name') :]))