choirulz / base2

Automatically exported from code.google.com/p/base2
0 stars 0 forks source link

JSON doesn't serialize null correct #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem (two test cases)?
tc 1. JSON.toString(null);
tc 2. JSON.toString({o:null});

What is the expected output? 
tc 1. "null"
tc 2. "{o:null}"

What do you see instead?
tc 1. "{}"
tc 2. "{o:{}}"

I will create testscripts for json, but I ran into this one by accident.

Original issue reported on code.google.com by doek...@gmail.com on 4 Jul 2007 at 1:49

GoogleCodeExporter commented 9 years ago
Fixed in revision 80. Didn't update lib.

Original comment by doek...@gmail.com on 9 Jul 2007 at 7:12

GoogleCodeExporter commented 9 years ago

Original comment by doek...@gmail.com on 14 Jul 2007 at 7:11