From: Hans Dedecker Date: Thu, 1 Feb 2018 15:41:27 +0000 (+0100) Subject: sh/jshn.sh: add json_for_each_item() X-Git-Url: http://git.archive.openwrt.org/?p=project%2Flibubox.git;a=commitdiff_plain;h=bb0c830b2a259b7c5ffa7c309ce9d3004f3c41a1;hp=bb0c830b2a259b7c5ffa7c309ce9d3004f3c41a1 sh/jshn.sh: add json_for_each_item() Function usefull to iterate through the different elements of an array or object; the provided callback function is called for each element which is passed the value, key and user provided arguments. For field types different from array or object the callback is called with the retrieved value. Signed-off-by: Hans Dedecker Acked-by: Jo-Philipp Wich ---