diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-06-04 21:03:24 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-06-04 21:13:41 +0200 |
commit | 304eec2ebaf983fd067e5ae719f8ec023aad8b30 (patch) | |
tree | 32a1aa489cc7414d135070691141bd8e3faf097d /applications/luci-app-fwknopd/po/templates/fwknopd.pot | |
parent | a835fc013b1420666e2a437b963ef7c5f07aea69 (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 'applications/luci-app-fwknopd/po/templates/fwknopd.pot')
0 files changed, 0 insertions, 0 deletions