All primitives that are allowed in JSON.
Note that while undefined is allowed here, it will be behave slightly differently than the others.
undefined
JSON.stringify(undefined)
JSON.stringify({a: null, b: undefined})
'{"a": null}'
b
@augment-vir/common
All primitives that are allowed in JSON.
Note that while
undefined
is allowed here, it will be behave slightly differently than the others.JSON.stringify(undefined)
will outputundefined
, not a string.JSON.stringify({a: null, b: undefined})
will output'{"a": null}'
, omitting theb
key entirely.