X-Git-Url: https://git.archive.openwrt.org/?p=project%2Flibubox.git;a=blobdiff_plain;f=sh%2Fjshn.sh;fp=sh%2Fjshn.sh;h=1090814bc8fb2558053cb43cd26030536f4883c2;hp=bf76edbeed3c7ee3632e537bb8470cfce0f5b201;hb=1c08e80313fd487112c48346889cc57badeef751;hpb=729f47fd5279f902986457682f8f166c324eafb5 diff --git a/sh/jshn.sh b/sh/jshn.sh index bf76edb..1090814 100644 --- a/sh/jshn.sh +++ b/sh/jshn.sh @@ -168,6 +168,12 @@ json_add_double() { _json_add_generic double "$1" "$2" "$cur" } +json_add_null() { + local cur + _json_get_var cur JSON_CUR + _json_add_generic null "$1" "" "$cur" +} + # functions read access to json variables json_load() {