Lines Matching refs:stringify
22 return jsonObject.stringify(1);
25 return jsonObject.stringify(1.5);
28 return jsonObject.stringify(-1);
31 return jsonObject.stringify(-1.5);
34 return jsonObject.stringify(null);
37 return jsonObject.stringify("string");
40 return jsonObject.stringify(new Number(0));
43 return jsonObject.stringify(new Number(1));
46 return jsonObject.stringify(new Number(1.5));
49 return jsonObject.stringify(new Number(-1));
52 return jsonObject.stringify(new Number(-1.5));
55 return jsonObject.stringify(new String("a string object"));
58 return jsonObject.stringify(new Boolean(true));
63 return jsonObject.stringify(value);
69 return jsonObject.stringify(value);
75 return jsonObject.stringify(value);
79 return jsonObject.stringify(true);
82 return jsonObject.stringify(false);
85 return jsonObject.stringify(new Date(0));
88 return jsonObject.stringify({toJSON: Date.prototype.toJSON});
92 …return jsonObject.stringify({toJSON: Date.prototype.toJSON, toISOString: function(){ return "custo…
95 …return jsonObject.stringify({toJSON: Date.prototype.toJSON, toISOString: function(){ return {}; }}…
99 …return jsonObject.stringify({toJSON: Date.prototype.toJSON, toISOString: function(){ throw "An exc…
105 return jsonObject.stringify(d);
111 return jsonObject.stringify(d);
114 return jsonObject.stringify({get Foo() { return "bar"; }});
117 return jsonObject.stringify({get Foo() { this.foo="wibble"; return "bar"; }});
121 jsonObject.stringify({get Foo() { count++; return "bar"; }});
126 …return jsonObject.stringify({get Foo() { count++; delete this.bar; return "bar"; }, bar: "wibble"}…
130 return jsonObject.stringify({a:"1", b:"2", c:"3", 5:4, 4:5, 2:6, 1:7});
134 …jsonObject.stringify({a:"1", b:"2", c:"3", 5:4, 4:5, 2:6, 1:7}, function(k,v){allString = allStrin…
139 …jsonObject.stringify([1,2,3,4,5], function(k,v){allString = allString && (typeof k == "string"); r…
145 return jsonObject.stringify({a:"1", b:"2", c:"3", 5:4, 4:5, 2:6, 1:7}, array);
150 … return jsonObject.stringify({get a(){return 1;array[1]="b";array[2]="c"}, b:"2", c:"3"}, array);
155 return jsonObject.stringify(simpleObject, array);
160 return jsonObject.stringify(simpleObjectWithProto, array);
165 …return jsonObject.stringify({"1":"1","2":"2","NaN":"NaN","Infinity":"Infinity","-Infinity":"-Infin…
171 return jsonObject.stringify({1:'a', 2:'b', 3:'c'}, array);
176 return jsonObject.stringify(simpleArray, array);
179 return jsonObject.stringify(simpleArray, null, " ");
182 return jsonObject.stringify(simpleArray, null, 4);
185 return jsonObject.stringify(simpleArray, null, "ab");
188 return jsonObject.stringify(simpleArray, null, 4);
191 return jsonObject.stringify(simpleObject, null, " ");
194 return jsonObject.stringify(simpleObject, null, 4);
197 return jsonObject.stringify(simpleObject, null, "ab");
200 return jsonObject.stringify(simpleObject, null, 4);
203 return jsonObject.stringify(simpleObject, null, 10);
206 return jsonObject.stringify(simpleObject, null, 11);
208 result[result.length - 1].expected = JSON.stringify(simpleObject, null, 10);
210 return jsonObject.stringify(simpleObject, null, " ");
212 result[result.length - 1].expected = JSON.stringify(simpleObject, null, 10);
214 return jsonObject.stringify(simpleObject, null, " ");
216 result[result.length - 1].expected = JSON.stringify(simpleObject, null, 10);
218 return jsonObject.stringify(complexArray, null, " ");
221 return jsonObject.stringify(complexArray, null, 4);
224 return jsonObject.stringify(complexArray, null, "ab");
227 return jsonObject.stringify(complexArray, null, 4);
230 return jsonObject.stringify(complexObject, null, " ");
233 return jsonObject.stringify(complexObject, null, 4);
236 return jsonObject.stringify(complexObject, null, "ab");
239 return jsonObject.stringify(complexObject, null, 4);
244 return jsonObject.stringify(simpleArrayWithProto, array);
247 return jsonObject.stringify(simpleArrayWithProto, null, " ");
250 return jsonObject.stringify(simpleArrayWithProto, null, 4);
253 return jsonObject.stringify(simpleArrayWithProto, null, "ab");
256 return jsonObject.stringify(simpleArrayWithProto, null, 4);
259 return jsonObject.stringify(simpleObjectWithProto, null, " ");
262 return jsonObject.stringify(simpleObjectWithProto, null, 4);
265 return jsonObject.stringify(simpleObjectWithProto, null, "ab");
268 return jsonObject.stringify(simpleObjectWithProto, null, 4);
271 return jsonObject.stringify(simpleObjectWithProto, null, 10);
274 return jsonObject.stringify(simpleObjectWithProto, null, 11);
276 result[result.length - 1].expected = JSON.stringify(simpleObjectWithProto, null, 10);
278 return jsonObject.stringify(simpleObjectWithProto, null, " ");
280 result[result.length - 1].expected = JSON.stringify(simpleObjectWithProto, null, 10);
282 return jsonObject.stringify(simpleObjectWithProto, null, " ");
284 result[result.length - 1].expected = JSON.stringify(simpleObjectWithProto, null, 10);
286 return jsonObject.stringify(complexArrayWithProto, null, " ");
289 return jsonObject.stringify(complexArrayWithProto, null, 4);
292 return jsonObject.stringify(complexArrayWithProto, null, "ab");
295 return jsonObject.stringify(complexArrayWithProto, null, 4);
298 return jsonObject.stringify(complexObjectWithProto, null, " ");
301 return jsonObject.stringify(complexObjectWithProto, null, 4);
304 return jsonObject.stringify(complexObjectWithProto, null, "ab");
307 return jsonObject.stringify(complexObjectWithProto, null, 4);
310 return jsonObject.stringify(objectWithSideEffectGetter);
313 return jsonObject.stringify(objectWithSideEffectGetterAndProto);
316 return jsonObject.stringify(arrayWithSideEffectGetter);
319 return jsonObject.stringify(arrayWithSideEffectGetterAndProto);
323 replaceTracker += key + "("+(typeof key)+")" + JSON.stringify(value) + ";";
328 jsonObject.stringify([1,2,3,,,,4,5,6], replaceFunc);
334 jsonObject.stringify({a:"a", b:"b", c:"c", 3: "d", 2: "e", 1: "f"}, replaceFunc);
341 jsonObject.stringify(simpleObject, array);
347 return jsonObject.stringify(simpleObject, array);
352 jsonObject.stringify(simpleObject, array);
356 return jsonObject.stringify({a:"1", get b() { this.a="foo"; return "getter"; }, c:"3"});
359 return jsonObject.stringify({a:"1", get b() { this.c="foo"; return "getter"; }, c:"3"});
363 jsonObject.stringify({a:"1", set b(s) { setterCalled = true; return "setter"; }, c:"3"});
367 …return jsonObject.stringify({a:"1", get b(){ return "getter"; }, set b(s) { return "setter"; }, c:…
370 return jsonObject.stringify(new Array(10));
373 return jsonObject.stringify([undefined,,null,0,false]);
376 return jsonObject.stringify({p1:undefined,p2:null,p3:0,p4:false});
389 return jsonObject.stringify(cyclicObject);
394 try { jsonObject.stringify(cyclicObject); } catch(e) { cycleTracker += " -> exception" }
404 return jsonObject.stringify(cyclicArray);
409 try { jsonObject.stringify(cyclicArray); } catch(e) { cycleTracker += " -> exception" }
421 return jsonObject.stringify(magicObject) + " :: getter calls = " + getterCalls;
424 return jsonObject.stringify(undefined);
427 return jsonObject.stringify(null);
430 return jsonObject.stringify({toJSON:function(){ return undefined; }});
433 return jsonObject.stringify({toJSON:function(){ return null; }});
436 return jsonObject.stringify([{toJSON:function(){ return undefined; }}]);
439 return jsonObject.stringify([{toJSON:function(){ return null; }}]);
442 return jsonObject.stringify({a:{toJSON:function(){ return undefined; }}});
445 return jsonObject.stringify({a:{toJSON:function(){ return null; }}});
448 return jsonObject.stringify({a:{toJSON:function(){ return function(){}; }}});
451 return jsonObject.stringify({a:function(){}});
457 return jsonObject.stringify(deepObject);
463 return jsonObject.stringify(deepArray);
474 return jsonObject.stringify(toDeepVirtualJSONObject());
485 return jsonObject.stringify(toDeepVirtualJSONArray());
491 return jsonObject.stringify(fullCharsetString);