luci/libs
Jan-Philipp Litza e7645d557c luci-lib-jsonc: allow encoding empty lists
To be consistent with the behavior of luci-lib-json, an empty Lua table
should be encoded to an empty JSON list, not an empty JSON object.

To still allow encoding empty JSON objects, the usage of anything other
than a number or a string as a key (for example an empty table or a
function) can be used to force encoding as an object:

    json.stringify({})                  -- "[]"
    json.stringify({[{}] = true})       -- "{}"

Signed-off-by: Jan-Philipp Litza <janphilipp@litza.de>
2015-08-30 15:52:33 +02:00
..
luci-lib-httpclient add params support in options 2015-01-22 13:12:48 +08:00
luci-lib-ip luci-lib-ip: add api documentation 2015-01-28 22:31:14 +01:00
luci-lib-json luci-lib-json: ignore null keys to allow encoding empty objects 2015-06-04 21:13:41 +02:00
luci-lib-jsonc luci-lib-jsonc: allow encoding empty lists 2015-08-30 15:52:33 +02:00
luci-lib-luaneightbl luci-lib-luaneightbl: add src Makefile and fix dependencies (#282) 2015-01-09 13:04:01 +01:00
luci-lib-nixio luci-lib-nixio: pass exact sockaddr length to getnameinfo() 2015-07-30 22:38:36 +02:00
luci-lib-px5g luci-lib-px5g: disable MIPS16 2015-01-15 11:12:11 +01:00
luci-lib-rpcc Move inline documentation into separate files. 2015-01-29 16:26:46 +01:00