Snap! Coerces Infinity to 'null' when converting to JSON

So I was converting a list of numbers to JSON, but when my numbers got decoded, some of them got converted to 'null'. I traced it to Infinity, which for some reason converts to null.

I believe it’s because snap (sadly but deliberately) doesn’t have much of a distinction between strings, numbers, (and null values).

It seems like this is unfixable, as JSON.stringify doesn’t support Infinity:

image

"infinity" should work:

Oh, I see. Although having :snap: do all the work deep mapping Infinity to “Infinity” isn’t worth it.

If the code which auto-turned strings which can be numbers into numbers created a special case for Infinity, and -Infinity, this could be fixed quite easily

So would 1e99999.