luci/libs/luci-lib-json
Matthias Schiffer 304eec2eba luci-lib-json: ignore null keys to allow encoding empty objects
There is currently no way to encode an empty object {}, as empty tables are
encoded as empty lists [].

With this patch, encode() will ignore table fields with the key json.null (which
doesn't make sense anyways). This allows adding a field with key json.null to
force encoding it as an object.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2015-06-04 21:13:41 +02:00
..
luasrc luci-lib-json: ignore null keys to allow encoding empty objects 2015-06-04 21:13:41 +02:00
Makefile Rework LuCI build system 2015-01-08 16:26:20 +01:00