jshn: do not collapse whitespace in json_load()
[project/libubox.git] / sh / jshn.sh
index 06ba96535b22045c84abe066d1a62b875b90f90c..5db1667d1f69ecec400c9d4a4de1970a5b36f990 100644 (file)
@@ -174,7 +174,7 @@ json_add_double() {
 # functions read access to json variables
 
 json_load() {
-       eval `jshn -r "$1"`
+       eval "`jshn -r "$1"`"
 }
 
 json_dump() {