diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-08-11 22:09:11 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-08-11 22:09:11 +0000 |
commit | 5e4563221a3af6ee81a0746e4e002f9607c8bec2 (patch) | |
tree | bdb9bc92ca2065c6bfc9a717b16d21face24373f /package/jshn/example.txt | |
parent | 09bc84f55bfb5fa17f3c0fdda36054f8fe4d4962 (diff) | |
download | upstream-5e4563221a3af6ee81a0746e4e002f9607c8bec2.tar.gz upstream-5e4563221a3af6ee81a0746e4e002f9607c8bec2.tar.bz2 upstream-5e4563221a3af6ee81a0746e4e002f9607c8bec2.zip |
update libubox and ubus to latest, libubox now includes jshn
SVN-Revision: 27963
Diffstat (limited to 'package/jshn/example.txt')
-rw-r--r-- | package/jshn/example.txt | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/package/jshn/example.txt b/package/jshn/example.txt deleted file mode 100644 index d5ab1c4d23..0000000000 --- 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" |