Home | History | Annotate | Download | only in resources

Lines Matching refs:function

19                         function or an array of strings.
40 Date.prototype.toJSON = function (key) {
41 function f(n) {
68 a replacer function to replace those with JSON values.
88 text = JSON.stringify([new Date()], function (key, value) {
99 The optional reviver parameter is a function that can filter and
110 myData = JSON.parse(text, function (key, value) {
123 myData = JSON.parse('["Date(09/09/2001)"]', function (key, value) {
164 (function () {
166 function f(n) {
171 if (typeof Date.prototype.toJSON !== 'function') {
173 Date.prototype.toJSON = function (key) {
200 function quote(string) {
209 '"' + string.replace(escapable, function (a) {
218 function str(key, holder) {
233 typeof value.toJSON === 'function') {
237 // If we were called with a replacer function, then call the replacer to
240 if (typeof rep === 'function') {
351 if (typeof JSON.stringify !== 'function') {
352 JSON.stringify = function (value, replacer, space) {
355 // space parameter, and returns a JSON text. The replacer can be a function
378 // If there is a replacer, it must be a function or an array.
382 if (replacer && typeof replacer !== 'function' &&
398 if (typeof JSON.parse !== 'function') {
399 JSON.parse = function (text, reviver) {
401 // The parse method takes a text and an optional reviver function, and returns
406 function walk(holder, key) {
434 text = text.replace(cx, function (a) {
458 // In the third stage we use the eval function to compile the text into a
466 // each name/value pair to a reviver function for possible transformation.
468 return typeof reviver === 'function' ?