Clone json object or array or date.
Compares two simple JSON objects.
Json1's keys == Json2's keys
Returns a filtered JSON.
If the function returns TRUE then save the key, otherwise remove the key.
过滤函数。返回true表示保留该键值,false则不保留。
Gets value by the property path from JSON data.
Example:
let json = {a:{b:{c:1}}}; Jsons.find(json, 'a.b.c'); //print 1
json data
the path string of property
Returns {json1 ^ json2}
Returns {json1 - json2}
Converts a JSON string into a JSON object.
A valid JSON string.
A function that transforms the results. This function is called for each member of the object. If a member contains nested objects, the nested objects are transformed before the parent object is.
Returns a new json object with new key-names.
将JSON对象中指定属性名称替换成新属性名并返回
Converts a JavaScript value to a JSON string.
A JavaScript value, usually an object or array, to be converted.
A function that transforms the results.
Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
Returns a newly merged JSON object and the following JSON object will deeply overwrites the previous JSON object.
Note: the key whose value is undefined in json2 will be ignored.
返回合并后的Json对象: 后面的JSON对象深度覆盖前面的JSON对象
注意:Json2中值为undefined的key会被忽略。
Json helper class
JSON工具类