Help!
I was reading the Yahoo! Widgets spec and it mentioned that I can parse JSON objects using JSON.parse(). So, being curious, I tried it out with this code snippet...
var parsed = JSON.parse('{"key": "value"}');
console.log(parsed);
for (p in parsed)
{
console.log("prop: "+p);
}
But instead of the expected result, I got:
ReferenceError: JSON is not defined
What am I missing here? Do I need to perform some further magic?