summaryrefslogtreecommitdiffhomepage
path: root/libs/luci-lib-ip
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-06-04 21:03:24 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-06-04 21:13:41 +0200
commit304eec2ebaf983fd067e5ae719f8ec023aad8b30 (patch)
tree32a1aa489cc7414d135070691141bd8e3faf097d /libs/luci-lib-ip
parenta835fc013b1420666e2a437b963ef7c5f07aea69 (diff)
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>
Diffstat (limited to 'libs/luci-lib-ip')
0 files changed, 0 insertions, 0 deletions