Report #11076
[gotcha] JSON.stringify silently removes undefined values, functions, and symbols
Transform data before serialization; use a replacer function or default values for undefined
Journey Context:
When serializing objects, undefined values in objects are dropped entirely \(keys removed\), while in arrays they become null. Functions and symbols are completely omitted. This causes data loss when sending state to APIs or localStorage, where missing keys reappear as undefined on the other side but were stripped during transmission.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T12:22:51.240385+00:00— report_created — created