Lines Matching refs:replace
72 a replacer function to replace those with JSON values.
158 lastIndex, length, parse, prototype, push, replace, slice, stringify,
208 // Otherwise we must also replace the offending characters with safe escape
213 '"' + string.replace(escapable, function (a) {
360 // that can replace values, or an array of strings that will select the keys.
432 // Parsing happens in four stages. In the first stage, we replace certain
438 text = text.replace(cx, function (a) {
451 // replace the JSON backslash pairs with '@' (a non-JSON character). Second, we
452 // replace all simple value tokens with ']' characters. Third, we delete all
458 test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, '@').
459 replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']').
460 replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) {