Re: [OpenWrt-Devel] OpenWrt / parsing JSON with jshn

2013-03-20 Thread Jonh Wendell
2013/3/20 Bastian Bittorf > 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_nu

Re: [OpenWrt-Devel] OpenWrt / parsing JSON with jshn

2013-03-20 Thread Manuel Munz
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

[OpenWrt-Devel] OpenWrt / parsing JSON with jshn

2013-03-20 Thread Bastian Bittorf
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? This is the J