JsonValue: string | number | boolean | null | JsonValue[] | {
    [key: string]: JsonValue;
}

A value that can be safely serialized to JSON via JSON.stringify().

This type excludes non-serializable values like:

  • undefined (use null instead)
  • Date (convert to ISO string first)
  • Function
  • Symbol
  • Circular references