Values that are JSON.stringify friendly, including primitives and objects that can be serialized via a toJSON method.
const validValues: JSONValues[] = [ "string", 42, BigInt(123), true, new Date(), null, undefined, { toJSON: () => ({ key: "value" }) }] Copy
const validValues: JSONValues[] = [ "string", 42, BigInt(123), true, new Date(), null, undefined, { toJSON: () => ({ key: "value" }) }]
Values that are JSON.stringify friendly, including primitives and objects that can be serialized via a toJSON method.