分享好玩好用,简便我们的生活 🎈🎈
我的博客:https://www.cnblogs.com/hhls1021/
分享好玩好用,简便我们的生活 🎈🎈
我的博客:https://www.cnblogs.com/hhls1021/
## JQ to filter JSON by value
Syntax: <strong>`cat <filename> | jq -c '.[] | select( .<key> | contains("<value>"))'`</strong>
Example: To get json record having _id equal 611
```bash
分享好玩好用,简便我们的生活 🎈🎈
我的博客:https://www.cnblogs.com/hhls1021/
## JQ to filter JSON by value
Syntax: <strong>`cat <filename> | jq -c '.[] | select( .<key> | contains("<value>"))'`</strong>
Example: To get json record having _id equal 611
```bash
分享好玩好用,简便我们的生活 🎈🎈
我的博客:https://www.cnblogs.com/hhls1021/
## JQ to filter JSON by value
Syntax: <strong>`cat <filename> | jq -c '.[] | select( .<key> | contains("<value>"))'`</strong>
Example: To get json record having _id equal 611
```bash