mirror of
https://github.com/donl/JSON-js.git
synced 2026-05-25 22:06:23 -06:00
is
This commit is contained in:
parent
107fc93c94
commit
031b1d9e69
2 changed files with 6 additions and 6 deletions
6
cycle.js
6
cycle.js
|
|
@ -16,8 +16,8 @@
|
|||
/*jslint eval, for */
|
||||
|
||||
/*property
|
||||
$ref, decycle, forEach, isArray, keys, length, push, retrocycle, stringify,
|
||||
test
|
||||
$ref, decycle, forEach, indexOf, isArray, keys, length, push, retrocycle,
|
||||
stringify, test
|
||||
*/
|
||||
|
||||
if (typeof JSON.decycle !== "function") {
|
||||
|
|
@ -141,7 +141,7 @@ if (typeof JSON.retrocycle !== "function") {
|
|||
// return JSON.retrocycle(JSON.parse(s));
|
||||
// produces an array containing a single element which is the array itself.
|
||||
|
||||
var px = /^\$(?:\[(?:\d+|\"(?:[^\\\"\u0000-\u001f]|\\([\\\"\/bfnrt]|u[0-9a-zA-Z]{4}))*\")\])*$/;
|
||||
var px = /^\$(?:\[(?:\d+|"(?:[^\\"\u0000-\u001f]|\\([\\"\/bfnrt]|u[0-9a-zA-Z]{4}))*")\])*$/;
|
||||
|
||||
(function rez(value) {
|
||||
|
||||
|
|
|
|||
6
json2.js
6
json2.js
|
|
@ -1,5 +1,5 @@
|
|||
// json2.js
|
||||
// 2016-05-01
|
||||
// 2016-10-28
|
||||
// Public Domain.
|
||||
// NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
|
||||
// See http://www.JSON.org/js.html
|
||||
|
|
@ -10,7 +10,7 @@
|
|||
// NOT CONTROL.
|
||||
|
||||
// This file creates a global JSON object containing two methods: stringify
|
||||
// and parse. This file is provides the ES5 JSON capability to ES3 systems.
|
||||
// and parse. This file provides the ES5 JSON capability to ES3 systems.
|
||||
// If a project might run on IE8 or earlier, then this file should be included.
|
||||
// This file does nothing on ES5 systems.
|
||||
|
||||
|
|
@ -162,7 +162,7 @@ if (typeof JSON !== "object") {
|
|||
var rx_two = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g;
|
||||
var rx_three = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g;
|
||||
var rx_four = /(?:^|:|,)(?:\s*\[)+/g;
|
||||
var rx_escapable = /[\\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;
|
||||
var rx_escapable = /[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;
|
||||
var rx_dangerous = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;
|
||||
|
||||
function f(n) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue