Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sh/jshn.sh')
-rw-r--r--sh/jshn.sh6
1 files changed, 6 insertions, 0 deletions
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() {