mpx / lua-cjson

Lua CJSON is a fast JSON encoding/parsing module for Lua
https://kyne.au/~mark/software/lua-cjson.php
MIT License
924 stars 474 forks source link

Support lua 5.3 integer representation #59

Open cloudwu opened 6 years ago

cloudwu commented 6 years ago

See #22 . The origin pr mix some other feature.

MaskRay commented 4 years ago

Ping @mpx. This looks good. Normally we cannot expect the initial portion of a string accepted by strtod can also be accepted by strtoll (Infinity, Inf, NaN, nan(222), etc). However, the form accepted by RFC 8259 is much narrower and this patch should work.