summaryrefslogtreecommitdiffstats
path: root/package/jshn/example.txt
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-08-11 22:09:11 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-08-11 22:09:11 +0000
commit93b1ffc2424053dd60d31daffe525b5905f6311b (patch)
treee6c37b3ab5fb50c671c9c392dc6e964bd31a5f75 /package/jshn/example.txt
parent02e3b0f5531da86339e8da86b1f78a9b6aba7f50 (diff)
update libubox and ubus to latest, libubox now includes jshn
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27963 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/jshn/example.txt')
-rw-r--r--package/jshn/example.txt19
1 files changed, 0 insertions, 19 deletions
diff --git a/package/jshn/example.txt b/package/jshn/example.txt
deleted file mode 100644
index d5ab1c4d2..000000000
--- a/package/jshn/example.txt
+++ /dev/null
@@ -1,19 +0,0 @@
-. /lib/functions/jshn.sh
-
-# generating json data
-json_init
-json_add_string "msg" "Hello, world!"
-json_add_object "test"
-json_add_int "testdata" "1"
-json_close_object
-MSG=`json_dump`
-# MSG now contains: { "msg": "Hello, world!", "test": { "testdata": 1 } }
-
-
-# parsing json data
-json_load "$MSG"
-json_select test
-json_get_var var1 testdata
-json_select ..
-json_get_var var2 msg
-echo "msg: $var2 - testdata: $var1"