Reputation: 1
I'm using a loop to import data from a TSV file. When I use console.log(d) I'm getting objects that look like this:
Object {indic_ed,geo\time: "G07_1,AT", "2001 ": "69.3 ", "2002 ": "69.0 ", "2003 ": "69.4 ", "2004 ": "75.6 "…}
I did manage to get data from the years (like d["2001 "]), but I can't seem to get the value for idic_ed,geo\time, since that gives me an error.
Any ideas on how to fix it?
Upvotes: 0
Views: 37
Reputation: 700342
You need to escape the backslash in the string:
d["indic_ed,geo\\time"]
Upvotes: 2