Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Object members with value of type "undefined" should be removed #27

@Krinkle

Description

@Krinkle

From mcknut on September 29, 2009 14:12:02

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.

Original issue: http://code.google.com/p/jquery-json/issues/detail?id=27

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions