How to parse a json file from Linux command line using jq - LinuxConfig.org

The JSON (JavaScript Object Notation) format is widely used to represent data structures, and is frequently used to exchange data between different layers of an application, or by the use of API calls. We probably know how to interact with json-formatted data with the most used programming languages such as parsing JSON with python, but what if we need to interact with it from the command line, or in a bash script? In this article we will see how we can accomplish such a task by using the jq utility and we will learn its basic usage.


This is a companion discussion topic for the original entry at https://linuxconfig.org/how-to-parse-a-json-file-from-linux-command-line-using-jq