1. Normal Value of json data: json [I]. fieldName
2. json data fields contain spaces: eval ('json ['+ I +'] ["'+ field +'"] ')
3. json Data assignment: eval ('json ['+ I +'] ["'+ field +'"] = '+ jsonFilter. length );
4. Add fields to json data: loop all data and directly use json [I]. newField = defaultValue.
5. Sorting of json data: equivalent to sorting of arrays. json. sort (function (a, B) {return a [name]> B [name]? 1:-1 });
6. Copy json data: var newObject = jQuery. extend (true, {}, oldObject); see copying json objects (arrays and objects) in jQuery)
7. add and delete json Arrays: concat method | join method | pop method | push method | reverse Method | shift method | slice Method | sort method | splice method | toLocaleString method | toString method | unshift method | valueOf Method
8. Example of creating a json array: var jsonArr = []; var item = {id: 'id1', value: 'val1'}; jsonArr. in this way, a json array with two field IDs and values is created, and a record is added to the array.