javascript - Why is JSON all uppercase -
i aware functions conventionally expressed in camel case ie
function myfunctionname(){ return false; }
and constructors first letter capitalized ie
function person(name){ this.name = name; }
but why json spelt in capitals in function:
json.stringify(somevalue);
i know may bit of pointless question can't seem find answer online.
thanks
this because an acronym javascript object notation.
in general, acronym conventions js seem less-defined / less-followed other aspects. e.g., labkey guidelines classify four-letter acronym requiring regular js rules.
Comments
Post a Comment