I am using Youtube json api to create a new mash-up.
Somewhere in the answer you can find the following:
{
"player":
{
"default":"http://www.youtube.com/watch?v\u003deH5Iysm417U"
}
}
I have always learned not to use any of the words mentioned in the ECMAScript standard reserved words section as identifiers. Therefore, as far as I know, it is not allowed to use the name "default" as the name of the property. Why is Youtube doing this?
player.default
To be honest, the above code works fine in the browser. But I had to change it to the code below so as not to compile errors when using the Google close compiler.
player["default"]
This is simply wrong. The most important question is: can I do something about this?