jshn: add functionality to read big JSON
[project/libubox.git] / sh / jshn.sh
index 1090814bc8fb2558053cb43cd26030536f4883c2..66baccbcaacff184ec25371fcdaf8159f1223dd0 100644 (file)
@@ -180,6 +180,10 @@ json_load() {
        eval "`jshn -r "$1"`"
 }
 
+json_load_file() {
+       eval "`jshn -R "$1"`"
+}
+
 json_dump() {
        jshn "$@" ${JSON_PREFIX:+-p "$JSON_PREFIX"} -w 
 }