Implemented correct handling of NaN and Infinity float values in JSON