JQ is a lightweight and flexible command-line JSON processor. This is a cheat sheet of commands and functions that I’ve found useful for quick reference. You can get the full JQ Cheat Sheet Here.
What includes?
- Installing jq
- Basic concepts
- Useful arguments
- Dealing with fields
- Dealing with json objects
- Regular expressions
- Loop control
- Path & object manipulation
- String manipulation
- SQL-Style Operators
- Types and Values
- Basic filters