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’) : GlobalVariable.name]))

hello,
you mean something like:

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

Thanks,

Just tried that syntax, still getting a 500 error.

I am following the first example from here :
https://docs.katalon.com//display/KD/Parameterize+a+Web+Service+object

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

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