
variables in json hash
Hi there!
I'm trying to create a hash variable with JSON:
"{ "items": [ ["calculation", " + var:calculation + "], ["number", 1], ["amount", 2], ] }"
Does anyone know how to parse a variable in the hash?
The variable (var:calculation) is a number expression variable.
I've tried a couple different ways. One of them is to write it like an expression as you can see above.
Also tried it like this:
{ "items": [ ["calculation", "var:calculation" ], ["number", 1], ["amount", 2], ] }
But also doesn't work. Also taking the quotes around the variable away also doesn't work.
Anyone any ideas on how to do this correctly?
Hi there!
I'm trying to create a hash variable with JSON:
"{
"items": [
["calculation", " + var:calculation + "],
["number", 1],
["amount", 2],
]
}"
Does anyone know how to parse a variable in the hash?
The variable (var:calculation) is a number expression variable.
I've tried a couple different ways. One of them is to write it like an expression as you can see above.
Also tried it like this:
{
"items": [
["calculation", "var:calculation" ],
["number", 1],
["amount", 2],
]
}
But also doesn't work. Also taking the quotes around the variable away also doesn't work.
Anyone any ideas on how to do this correctly?
Login to reply