lua-cjson icon indicating copy to clipboard operation
lua-cjson copied to clipboard

Lua CJSON is a fast JSON encoding/parsing module for Lua

Results 20 lua-cjson issues
Sort by recently updated
recently updated
newest added

when i use cjson.encode(table), the table is modified order ,why? e.g: local json = cjson.encode({name="yhc",age=40,birthday="1985"}) print(json) -- {"birthday":"1985","name":"yhc","age":40} i don't want to change,how to do?

decode empty array string and encode the lua table into empty array automaticly. I add the code in this place in the file lua_cjson.c ,it works. ```c /* Handle empty...

In `/etc/prosody/prosody.cfg.lua` I've set this VirtualHost: VirtualHost "uxpug2bqoujpbjgtwogesqvixybtknziv7ieu3jfhuyxs5b4afjq.b32.i2p"; ssl = { key = "/etc/prosody/certs/uxpug2bqoujpbjgtwogesqvixybtknziv7ieu3jfhuyxs5b4afjq.b32.i2p.key"; certificate = "/etc/prosody/certs/uxpug2bqoujpbjgtwogesqvixybtknziv7ieu3jfhuyxs5b4afjq.b32.i2p.crt"; } https_certificate = "/etc/prosody/certs/uxpug2bqoujpbjgtwogesqvixybtknziv7ieu3jfhuyxs5b4afjq.b32.i2p.crt"; modules_enabled = { "presence_identity" } asap_accepted_issuers = { "jitsi",...

ecma-262 (ES6) is commonly used with json and has specific rules for NumberToString formatting. This PR adds an option to have ES6 like number formatting for the internal dtoa implementation....

By default JSON null values are encoded cjson.null lightuserdata. `cjson.decode_json_null(false)` allows disabling this behavior and instead convert JSON null to Lua nil values.

hey I getting this error while trying to start nginx: undefined symbol: lua_newuserdatauv stack traceback: [C]: at 0x7fd2c07ac720 [C]: in function 'require' /etc/nginx/ljbc/load_modules.ljbc: in function nginx.conf: lua_package_path "/etc/nginx/ljbc/?.ljbc;/usr/local/share/lua/5.4/?.lua"; # ";;"...

Hi all, I just want to understand why encode invalid JSON works well without exception but decode breaks with an error. My use case is to encode data on Redis...

Hi. Currently master branch has [`2.1.0.12-1.rockspec`](https://github.com/openresty/lua-cjson/blob/master/lua-cjson-2.1.0.12-1.rockspec) file, and the reader might think it's for `2.1.0.12-1`, but the content of the file says `2.1.0.11-1`. However, in tags there is already [`2.1.0.13`](https://github.com/openresty/lua-cjson/releases/tag/2.1.0.13)...

json_decode 在传入错误json数据时,处理不正常,异常数据为json.decode(”1111111111“),解析成功并返回异常数据 1.1111111111111e+15