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
path: root/sh
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-03-17 03:50:03 +0400
committerFelix Fietkau <nbd@openwrt.org>2013-03-17 03:50:03 +0400
commit00a833c5b6f44c8cf2a7a9838de32d0dc5400a90 (patch)
tree605bb40f1a9ed1e95eb54ffcb0bd9136f0ebc0f9 /sh
parent49e6e062b8effe281a85de167c16c5f039b74442 (diff)
jshn: add support for the double datatype
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'sh')
-rw-r--r--sh/jshn.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/sh/jshn.sh b/sh/jshn.sh
index 1d9fc80..b4bb1e1 100644
--- a/sh/jshn.sh
+++ b/sh/jshn.sh
@@ -182,6 +182,10 @@ json_add_boolean() {
_json_add_generic boolean "$1" "$2"
}
+json_add_double() {
+ _json_add_generic double "$1" "$2"
+}
+
# functions read access to json variables
json_load() {