(1) JSON is the native support in JavaScript (compared with XML );
(2) The disadvantage is that on the server side, the Secondary package of the server language is less mature than the XML format data. (3) In fact, JSON is eventually an array, objects can exist in the array; objects can contain arrays; (4) declared objects in JS; Public attribute declarations are directly declared on objects; var book = function (name) {This. name = Name;} book. prototype. setname = function (nname) {This. name = nname;} book. prototype. getname = function () {return this. name ;}while defining public methods can be defined on the prototype object; this saves memory space; (5) defining public attributes on the prototype property; if the object or array is defined. All objects will have this property. This is also the reason that the public property is not defined on the prototype object; (6) defining local variables; (7) hasownproperty: This method can only determine the attributes directly defined on the object, and false is returned for the inherited attributes; (8) hasproperty method can determine the inherited methods; (9) object. protoype. hasproperty = function (proname) {return (this & this [proname])! = Undefined; }