dcsimg
Linux Today: Linux News On Internet Time.




More on LinuxToday


How to parse a json file from Linux command line using jq

Mar 11, 2020, 05:00 (0 Talkback[s])
(Other stories by Egidio Docile)

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.

Complete Story