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:
authorJo-Philipp Wich <jow@openwrt.org>2014-07-15 17:57:47 +0400
committerFelix Fietkau <nbd@openwrt.org>2014-07-16 22:36:13 +0400
commitbd388d2b6c2c151bf513c1e449417d18ce02d10b (patch)
treef2410b9e726b2926b8ac61774ce0f6f9cc6f3928 /blobmsg.h
parent7ba1f8acd8afb451a05276eda5d3567a53ef2fb3 (diff)
jshn: do not collapse whitespace in json_load()
When running the test case below the $key variable holds "foo bar" instead of the expected "foo bar". -- 8< -- . /usr/share/libubox/jshn.sh json_init json_load '{ "key": "foo bar" }' json_get_var key key -- >8 -- Quote the output of the "jshn -r" backtick expression to prevent the shell from erroneously collapsing whitespace. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'blobmsg.h')
0 files changed, 0 insertions, 0 deletions