I have this JSON
{
"data":{
"string-x": "21",
"string-y": "110"
}
}
the string x and y is coordinates
I just want to call the coodinates by
data.string-x and data.string-y but I got this error
ReferenceError: x is not defined
what am I missing? it seems javascript treat data.string-x like equation not regular node call.
could anyone help me.
data['string-y']?