I have a JSON-formatted document like so:
{
"the-field": "something",
// etc
}
When I call foo = JSON.parse() it spits out an object literal with a field foo.the-field, but when I try console.log(foo.the-field) I'm told that it's not proper formatting for a JavaScript variable. What gives?