output application/json var name = vars.uname --- { vars.name: name, //-----> Here i am not able too retreive variable as key description: payload.text }
Asked
Active
Viewed 1,313 times
2

afelisatti
- 2,770
- 1
- 13
- 21

Sri Rockz
- 85
- 1
- 9
1 Answers
3
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
}

machaval
- 4,969
- 14
- 20
-
Awesome.. Thanks for quick reply – Sri Rockz Jun 24 '20 at 14:02