• Ingvar Stepanyan's avatar
    Simplify JSON number decoding · cc743297
    Ingvar Stepanyan authored
    Simplifiy implementation and, as a bonus, allow overflowing floating numbers to convert to +/-Infinity like they do in JSON.parse.
    
    Also update outdated comment about NaN and Infinity being encoded as `null`.
    cc743297
json-test.c++ 34.3 KB