Lines Matching refs:stringify
36 assertEquals(expected, JSON.stringify(object));
38 assertEquals(expected, JSON.stringify(object, (key, value) => value));
40 assertEquals(JSON.stringify(object, null, "="),
41 JSON.stringify(object, (key, value) => value, "="));
100 assertEquals(expected2, JSON.stringify(parent2));
102 assertEquals(expected2, JSON.stringify(parent2, undefined, 0));
211 JSON.stringify(parent7));
213 JSON.stringify(parent7));
237 assertEquals(undefined, JSON.stringify(proxy));
251 assertEquals('{"foo":42}', JSON.stringify(proxy));
272 assertEquals('[42]', JSON.stringify(proxy));
289 assertEquals('{"0":"foo","1":708}', JSON.stringify(object, proxy));
313 assertEquals('{"0":"foo"}', JSON.stringify(object, proxy));
329 assertEquals('["foo",42]', JSON.stringify(object, proxy));
348 assertEquals('{"foo":true}', JSON.stringify(object, proxy));
362 assertThrows(() => JSON.stringify(object, proxy), TypeError);
373 assertEquals('["foo",{"baz":5}]', JSON.stringify(object, replacer));
389 assertEquals('["foo",["bar"]]', JSON.stringify(object, replacer));
409 JSON.stringify(object, replacer));
423 assertThrows(() => JSON.stringify(object, replacer), TypeError);
433 assertEquals('["foo",null]', JSON.stringify(["foo", 42], replacer));
436 assertEquals('{"0":"foo"}', JSON.stringify({0: "foo", 1: 42}, replacer));
517 assertEquals('[[0,0,0,0,0,0,0]]', JSON.stringify([proxy]));
525 assertThrows(() => JSON.stringify([proxy]), RangeError);
554 assertEquals('[{"0":"0","a":"A","b":"B"}]', JSON.stringify([proxy]));