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