Lines Matching refs:JSON
24 Test to ensure correct behaviour of replacer functions in JSON.stringify
29 PASS JSON.stringify(object, returnUndefined) is undefined.
30 PASS JSON.stringify(array, returnUndefined) is undefined.
31 PASS JSON.stringify(object, returnObjectFor1) is '{"0":0,"1":{},"2":2}'
32 PASS JSON.stringify(array, returnObjectFor1) is '[0,{},2,null]'
33 PASS JSON.stringify(object, returnArrayFor1) is '{"0":0,"1":[],"2":2}'
34 PASS JSON.stringify(array, returnArrayFor1) is '[0,[],2,null]'
35 PASS JSON.stringify(object, returnUndefinedFor1) is '{"0":0,"2":2}'
36 PASS JSON.stringify(array, returnUndefinedFor1) is '[0,null,2,null]'
37 PASS JSON.stringify(object, returnFunctionFor1) is '{"0":0,"2":2}'
38 PASS JSON.stringify(array, returnFunctionFor1) is '[0,null,2,null]'
39 PASS JSON.stringify(object, returnNullFor1) is '{"0":0,"1":null,"2":2}'
40 PASS JSON.stringify(array, returnNullFor1) is '[0,null,2,null]'
41 PASS JSON.stringify(object, returnStringForUndefined) is '{"0":0,"1":1,"2":2,"3":"undefined value"}'
42 PASS JSON.stringify(array, returnStringForUndefined) is '[0,1,2,"undefined value"]'
43 PASS JSON.stringify(object, returnCycleObjectFor1) threw exception TypeError: Converting circular s…
44 PASS JSON.stringify(array, returnCycleObjectFor1) threw exception TypeError: Converting circular st…
45 PASS JSON.stringify(object, returnCycleArrayFor1) threw exception TypeError: Converting circular st…
46 PASS JSON.stringify(array, returnCycleArrayFor1) threw exception TypeError: Converting circular str…