Reputation: 85
output application/json var name = vars.uname --- { vars.name: name, //-----> Here i am not able too retreive variable as key description: payload.text }
Upvotes: 2
Views: 2210
Reputation: 5059
You need to use parenthesis in the key to specify that is an expression.
output application/json
var name = vars.uname
---
{
(vars.name): name, //-----> Here i am not able too retreive variable as key
description: payload.text
}
Upvotes: 5