git clone https://github.com/stedolan/jq git submodule update --init # if building from git to get oniguruma autoreconf -fi # if building from git ./configure --with-oniguruma=builtin make sudo make install使用,假設有個輸出是json_str,第一個索引是.results,就可以這樣用
json_str | ./jq '.results'
沒有留言:
張貼留言