The DailyToken

JSON.parse(JSON.stringify()) vs structuredClone: What Survives the Copy

I copied objects with JSON.parse(JSON.stringify(obj)) for years. It works right up until the object holds something JSON has no idea about. I ran a test on Node.js 22 with four values that break the trick: const original = { date : new Date ( "2026-01-01T00:00:00Z" ) , map : new Map ( [ [ "a" , 1 ]…

Read the full story at DEV Community — AI ↗

Timeline · 1 report

  1. 2026-12-05 03:39 · DEV Community — AI
    JSON.parse(JSON.stringify()) vs structuredClone: What Survives the Copy

More stories

  1. House Panels Release Jensen Huang Transcript on AI Chip Diversion to China — Techmeme
  2. Anthropic Publishes Pretraining Loss Curve, Argues Against Loss-Based AI Pacing — Anthropic (X)
  3. NSA and major tech firms warn AI advances threaten current encryption standards — Anthropic (X)
  4. Open-weight model wave: Qwen4-35B-A3B, Ergo 1.1T, MedGemma 2 and SOV-Omni-1-Mini land — Google Research Blog
  5. AWS re:Invent 2026 centers on agentic AI, custom silicon, and DuckDB acquisition — OpenAI YouTube
  6. OpenAI Revenue Under Pressure Ahead of Planned IPO — Wall Street Journal Technology
  7. MCP servers expand agent tooling across coding, testing, ads and mobile — Anthropic (X)
  8. Amazon and eBay tighten rules on AI toys after safety tests find harmful responses — NBC News

Read the Daily Brief: the day's most important AI stories →