Concepts
JSON omitted values
Undefined, functions and symbols are omitted in object members, replaced with null in arrays; non-finite numbers serialize as null.
Formal Syntax & Structure
javascript syntaxjavascript
JSON.stringify({a: undefined})Working Example
Example Snippetjavascript
console.log(JSON.stringify([undefined,NaN]));