You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 29, 2024. It is now read-only.
What steps will reproduce the problem? 1. var a = {foo:undefined}
2. $.toJSON(a) 3. What is the expected output? What do you see instead? Expected: {"foo":null}
See this instead: {"foo":undefined} What version of the product are you using? On what operating system? 2.2 Please provide any additional information below. The JSON spec here shows that undefined is not valid, it should be null: http://json.org/ Fix is pretty simple so I haven't attached a patch.