M
Morgan Packard
var Functions = {
myfunction : function() { }
}
var refToFunction = Functions.myfunction;
var myJsonObj1 = {
refToFunction : "some value"
}
var myJsonObj2 = {
Functions.myfunction: "some value"
}
Can anyone explain why my browser complains when creating the second
myJsonObj2 (missing : after property id
[Break on this error] Functions.myfunction : "some value" \n)? Can I
not have dot notation in a JSON key?
thanks,
-Morgan
myfunction : function() { }
}
var refToFunction = Functions.myfunction;
var myJsonObj1 = {
refToFunction : "some value"
}
var myJsonObj2 = {
Functions.myfunction: "some value"
}
Can anyone explain why my browser complains when creating the second
myJsonObj2 (missing : after property id
[Break on this error] Functions.myfunction : "some value" \n)? Can I
not have dot notation in a JSON key?
thanks,
-Morgan