json.lua
json.lua copied to clipboard
fix #41: Large numbers serialized incorrectly
Proper fix should be just using "%.17g".
Okay no, to support newer Lua versions and 64-bit integers, math.tointeger and %d should indeed be used; %g would have to be bumped to %.20g.