Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

JSON doesn't serialize null correct #18

Closed
GoogleCodeExporter opened this issue Aug 19, 2015 · 2 comments
Closed

JSON doesn't serialize null correct #18

GoogleCodeExporter opened this issue Aug 19, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

Fixed in revision 80. Didn't update lib.

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

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

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

  • Added labels: Browser-All, Module-base2.JSON

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant