JQ cheat Sheet

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 expres­sions
  • Loop control
  • Path & object manipu­lation
  • String manipu­lation
  • SQL-Style Operators
  • Types and Values
  • Basic filters