JKISoftware / JKI-JSON-Serialization

JSON Serialization & Deserialization Library for LabVIEW
http://jki.net/tools#json
BSD 3-Clause "New" or "Revised" License
25 stars 9 forks source link

Convert NaN & Inf to null by default #15

Closed tmaila closed 8 years ago

tmaila commented 8 years ago

Make the default behavior to align with Ecma Script 2016 and have NaN and Inf to serialize to null by default. Allow using numeric extensions as an option.

http://stackoverflow.com/questions/1423081/json-left-out-infinity-and-nan-json-status-in-ecmascript

tmaila commented 8 years ago

Disabled numeric extensions by default. Changed to serialize NaN to null by default but kept +/- Infinity to serialize to +/-1.0e999. Change implemented in 1.1.0.