Lines Matching refs:JSON
38 assertEquals(expected, JSON.stringify(object));
40 assertEquals(expected, JSON.stringify(object, undefined, 0));
98 assertEquals(expected2, JSON.stringify(parent2));
100 assertEquals(expected2, JSON.stringify(parent2, undefined, 0));
212 JSON.stringify(parent7));
214 JSON.stringify(parent7));
238 assertEquals(undefined, JSON.stringify(proxy));
252 assertEquals('{"foo":42}', JSON.stringify(proxy));
273 assertEquals('[42]', JSON.stringify(proxy));
290 assertEquals('{"0":"foo","1":708}', JSON.stringify(object, proxy));
314 assertEquals('{"0":"foo"}', JSON.stringify(object, proxy));
330 assertEquals('["foo",42]', JSON.stringify(object, proxy));
349 assertEquals('{"foo":true}', JSON.stringify(object, proxy));
363 assertThrows(() => JSON.stringify(object, proxy), TypeError);
374 assertEquals('["foo",{"baz":5}]', JSON.stringify(object, replacer));
390 assertEquals('["foo",["bar"]]', JSON.stringify(object, replacer));
410 JSON.stringify(object, replacer));
424 assertThrows(() => JSON.stringify(object, replacer), TypeError);
434 assertEquals('["foo",null]', JSON.stringify(["foo", 42], replacer));
437 assertEquals('{"0":"foo"}', JSON.stringify({0: "foo", 1: 42}, replacer));
453 assertEquals(42, JSON.parse("[true, false]", proxy));
479 assertEquals({foo: 0, bar: proxy}, JSON.parse('{"foo":0,"bar":1}', reviver));
502 var result = JSON.parse('{"foo":0,"bar":1}', reviver);