New topic Closed topic
avatar image
1
variables in json hash
By Created , last editted

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?

Answers
Sort by:

This topic is closed.