JSON.stringify() Edge Cases — undefined, null, Dates, Circular References, BigInt & More
Why undefined silently disappears from objects, null is preserved, Dates become ISO strings, circular references throw, BigInt throws, NaN becomes null, and Map/Set lose all data — with fixes for every case.