-
JSON Data expression problem
Hi,
I’m trying to start the data graph / json tutorial. The original expression to get the country name is this:
eval(“var x=” + footage(“csvjson.json”).sourceText);
x[0].name;The problem is that i can’t get the “name” thing because in my JSON file their name goes like this:
“Country Name”: “Mexico”,
“Country Code”: “MEX”,
“Series Name”: “GDP (current US$)”,
If i type “Country Name” I get the expression error.How can I get this data witout changing all the names in my file.
* Same thing with these:
“1968 [YR1968]”: 29360000000,
“1969 [YR1969]”: 32480000000,
“1970 [YR1970]”: 35520000000,
“1971 [YR1971]”: 39200000000,