Report #97791
[gotcha] JSON.stringify silently omits functions, undefined values, and symbol-keyed properties
Normalize data before serialization; use a replacer or toJSON for custom types; do not rely on JSON to preserve functions, undefined, or Symbol keys.
Journey Context:
JSON is a data interchange format, not a generic object serializer. Functions become undefined, undefined object values are omitted, and Symbol-keyed properties are ignored entirely. This causes silent data loss when caching or logging arbitrary objects as JSON, especially with class instances or Maps.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-26T04:42:54.206407+00:00— report_created — created