• Home
  • Raw
  • Download

Lines Matching refs:stringify

45         return jsonObject.stringify(1);
48 return jsonObject.stringify(1.5);
51 return jsonObject.stringify(-1);
54 return jsonObject.stringify(-1.5);
57 return jsonObject.stringify(null);
60 return jsonObject.stringify("string");
63 return jsonObject.stringify(new Number(0));
66 return jsonObject.stringify(new Number(1));
69 return jsonObject.stringify(new Number(1.5));
72 return jsonObject.stringify(new Number(-1));
75 return jsonObject.stringify(new Number(-1.5));
78 return jsonObject.stringify(new String("a string object"));
81 return jsonObject.stringify(new Boolean(true));
86 return jsonObject.stringify(value);
92 return jsonObject.stringify(value);
98 return jsonObject.stringify(value);
102 return jsonObject.stringify(true);
105 return jsonObject.stringify(false);
108 return jsonObject.stringify(new Date(0));
111 return jsonObject.stringify({toJSON: Date.prototype.toJSON});
115 …return jsonObject.stringify({toJSON: Date.prototype.toJSON, toISOString: function(){ return "custo…
118 …return jsonObject.stringify({toJSON: Date.prototype.toJSON, toISOString: function(){ return {}; }}…
122 …return jsonObject.stringify({toJSON: Date.prototype.toJSON, toISOString: function(){ throw "An exc…
128 return jsonObject.stringify(d);
134 return jsonObject.stringify(d);
137 return jsonObject.stringify({get Foo() { return "bar"; }});
140 return jsonObject.stringify({get Foo() { this.foo="wibble"; return "bar"; }});
144 jsonObject.stringify({get Foo() { count++; return "bar"; }});
149 …return jsonObject.stringify({get Foo() { count++; delete this.bar; return "bar"; }, bar: "wibble"}…
153 return jsonObject.stringify({a:"1", b:"2", c:"3", 5:4, 4:5, 2:6, 1:7});
157 …jsonObject.stringify({a:"1", b:"2", c:"3", 5:4, 4:5, 2:6, 1:7}, function(k,v){allString = allStrin…
162 …jsonObject.stringify([1,2,3,4,5], function(k,v){allString = allString && (typeof k == "string"); r…
168 return jsonObject.stringify({a:"1", b:"2", c:"3", 5:4, 4:5, 2:6, 1:7}, array);
173 … return jsonObject.stringify({get a(){return 1;array[1]="b";array[2]="c"}, b:"2", c:"3"}, array);
178 return jsonObject.stringify(simpleObject, array);
183 return jsonObject.stringify(simpleObjectWithProto, array);
188 …return jsonObject.stringify({"1":"1","2":"2","NaN":"NaN","Infinity":"Infinity","-Infinity":"-Infin…
194 return jsonObject.stringify({1:'a', 2:'b', 3:'c'}, array);
199 return jsonObject.stringify(simpleArray, array);
202 return jsonObject.stringify(simpleArray, null, " ");
205 return jsonObject.stringify(simpleArray, null, 4);
208 return jsonObject.stringify(simpleArray, null, "ab");
211 return jsonObject.stringify(simpleArray, null, 4);
214 return jsonObject.stringify(simpleObject, null, " ");
217 return jsonObject.stringify(simpleObject, null, 4);
220 return jsonObject.stringify(simpleObject, null, "ab");
223 return jsonObject.stringify(simpleObject, null, 4);
226 return jsonObject.stringify(simpleObject, null, 10);
229 return jsonObject.stringify(simpleObject, null, 11);
231 result[result.length - 1].expected = JSON.stringify(simpleObject, null, 10);
233 return jsonObject.stringify(simpleObject, null, " ");
235 result[result.length - 1].expected = JSON.stringify(simpleObject, null, 10);
237 return jsonObject.stringify(simpleObject, null, " ");
239 result[result.length - 1].expected = JSON.stringify(simpleObject, null, 10);
241 return jsonObject.stringify(complexArray, null, " ");
244 return jsonObject.stringify(complexArray, null, 4);
247 return jsonObject.stringify(complexArray, null, "ab");
250 return jsonObject.stringify(complexArray, null, 4);
253 return jsonObject.stringify(complexObject, null, " ");
256 return jsonObject.stringify(complexObject, null, 4);
259 return jsonObject.stringify(complexObject, null, "ab");
262 return jsonObject.stringify(complexObject, null, 4);
267 return jsonObject.stringify(simpleArrayWithProto, array);
270 return jsonObject.stringify(simpleArrayWithProto, null, " ");
273 return jsonObject.stringify(simpleArrayWithProto, null, 4);
276 return jsonObject.stringify(simpleArrayWithProto, null, "ab");
279 return jsonObject.stringify(simpleArrayWithProto, null, 4);
282 return jsonObject.stringify(simpleObjectWithProto, null, " ");
285 return jsonObject.stringify(simpleObjectWithProto, null, 4);
288 return jsonObject.stringify(simpleObjectWithProto, null, "ab");
291 return jsonObject.stringify(simpleObjectWithProto, null, 4);
294 return jsonObject.stringify(simpleObjectWithProto, null, 10);
297 return jsonObject.stringify(simpleObjectWithProto, null, 11);
299 result[result.length - 1].expected = JSON.stringify(simpleObjectWithProto, null, 10);
301 return jsonObject.stringify(simpleObjectWithProto, null, " ");
303 result[result.length - 1].expected = JSON.stringify(simpleObjectWithProto, null, 10);
305 return jsonObject.stringify(simpleObjectWithProto, null, " ");
307 result[result.length - 1].expected = JSON.stringify(simpleObjectWithProto, null, 10);
309 return jsonObject.stringify(complexArrayWithProto, null, " ");
312 return jsonObject.stringify(complexArrayWithProto, null, 4);
315 return jsonObject.stringify(complexArrayWithProto, null, "ab");
318 return jsonObject.stringify(complexArrayWithProto, null, 4);
321 return jsonObject.stringify(complexObjectWithProto, null, " ");
324 return jsonObject.stringify(complexObjectWithProto, null, 4);
327 return jsonObject.stringify(complexObjectWithProto, null, "ab");
330 return jsonObject.stringify(complexObjectWithProto, null, 4);
333 return jsonObject.stringify(objectWithSideEffectGetter);
336 return jsonObject.stringify(objectWithSideEffectGetterAndProto);
339 return jsonObject.stringify(arrayWithSideEffectGetter);
342 return jsonObject.stringify(arrayWithSideEffectGetterAndProto);
346 replaceTracker += key + "("+(typeof key)+")" + JSON.stringify(value) + ";";
351 jsonObject.stringify([1,2,3,,,,4,5,6], replaceFunc);
357 jsonObject.stringify({a:"a", b:"b", c:"c", 3: "d", 2: "e", 1: "f"}, replaceFunc);
364 jsonObject.stringify(simpleObject, array);
370 return jsonObject.stringify(simpleObject, array);
375 jsonObject.stringify(simpleObject, array);
379 return jsonObject.stringify({a:"1", get b() { this.a="foo"; return "getter"; }, c:"3"});
382 return jsonObject.stringify({a:"1", get b() { this.c="foo"; return "getter"; }, c:"3"});
386 jsonObject.stringify({a:"1", set b(s) { setterCalled = true; return "setter"; }, c:"3"});
390 …return jsonObject.stringify({a:"1", get b(){ return "getter"; }, set b(s) { return "setter"; }, c:…
393 return jsonObject.stringify(new Array(10));
396 return jsonObject.stringify([undefined,,null,0,false]);
399 return jsonObject.stringify({p1:undefined,p2:null,p3:0,p4:false});
412 return jsonObject.stringify(cyclicObject);
417 try { jsonObject.stringify(cyclicObject); } catch(e) { cycleTracker += " -> exception" }
427 return jsonObject.stringify(cyclicArray);
432 try { jsonObject.stringify(cyclicArray); } catch(e) { cycleTracker += " -> exception" }
444 return jsonObject.stringify(magicObject) + " :: getter calls = " + getterCalls;
447 return jsonObject.stringify(undefined);
450 return jsonObject.stringify(null);
453 return jsonObject.stringify({toJSON:function(){ return undefined; }});
456 return jsonObject.stringify({toJSON:function(){ return null; }});
459 return jsonObject.stringify([{toJSON:function(){ return undefined; }}]);
462 return jsonObject.stringify([{toJSON:function(){ return null; }}]);
465 return jsonObject.stringify({a:{toJSON:function(){ return undefined; }}});
468 return jsonObject.stringify({a:{toJSON:function(){ return null; }}});
471 return jsonObject.stringify({a:{toJSON:function(){ return function(){}; }}});
474 return jsonObject.stringify({a:function(){}});
480 return jsonObject.stringify(deepObject);
486 return jsonObject.stringify(deepArray);
497 return jsonObject.stringify(toDeepVirtualJSONObject());
508 return jsonObject.stringify(toDeepVirtualJSONArray());
514 return jsonObject.stringify(fullCharsetString);