≈ the.bay.news

JSON.parse can silently turn 1e999 into null — check your formatter in 10 seconds

DEV Community
JSON.parse can silently turn 1e999 into null — check your formatter in 10 seconds
JSON.parse turns 1e999 into Infinity, and JSON.stringify writes it back as null. Reproducible examples — and a 10-second test for your own formatter.

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.