On 20.03.2013 12:11, Bastian Bittorf wrote: > with is the supposed way to do this, could'nt find > any documentation, so we tried this: > > #!/bin/sh > . /usr/share/libubox/jshn.sh > > JSON="$( wget -qO - "$URL" )" > eval $( jshn -r "$JSON" ) > > echo "Status is $JSON_VAR_status" > echo "Number is: $JSON_TABLE1_number" > > > #### > Or is this too naiv?
Yes, you are supposed to use it differently: https://dev.openwrt.org/browser/trunk/package/jshn/example.txt?rev=25652 Unfortunately i didn't find newer docs for it, but this still works. Regards, soma
signature.asc
Description: OpenPGP digital signature
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel