This message was deleted.
# help
s
This message was deleted.
t
Looks like you’ve got the right idea there. What’s not working for you currently?
👍 1
m
Sample request: { "persons" : [ {"name": "foo"} ] } Mapping:
.....
*"jsonBody"*: {
"output": {{#assign 'reqName'}}{{jsonPath request.body '$.persons[0].name'}}{{/assign}}{{reqName}},
"personName" : {{reqName}}
}
.....
Output as follows: response -> { "output" : "foo", "personName" : "foo" }
Initially I didn't found right place to put the assignment, @Tom worked well.