cesium-ml / baselayer

Fully customizable (scientific, compute-intensive) web application template
http://cesium-ml.org/baselayer/
30 stars 18 forks source link

JSON responses encode Inf, -Inf, and NaN as null #252

Closed stefanv closed 2 years ago

stefanv commented 2 years ago

We may want to change the flags used when exporting JSON to preserve those values.

guynir42 commented 2 years ago

@profjsb did you work on something related to this?

stefanv commented 2 years ago

Unfortunately, the JSON specification does not allow for encoding Inf, -Inf, and NaN, so I think there's not much for us to do here unless we break the standard.