Type Alias JsonCompatiblePrimitive

JsonCompatiblePrimitive: Jsonify<Primitive> | undefined

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 output undefined, not a string.
  • JSON.stringify({a: null, b: undefined}) will output '{"a": null}', omitting the b key entirely.