I have a JSON array that looks like this:
var currencyformats =
{"USD":[
{'symbol':'$', 'left':true}
],
"UAH":[
{'symbol':'₴', 'left':true}
],
"EUR":[
{'symbol':'€', 'left':false}
]
};
How can I retrieve the symbol '₴'? I attempted to do this (with the cookie "to" set to "UAH")
currencyformats[$.cookie("to")].symbol
but all I got was undefined