Course Information
Course Overview
Learn How to Parse JSON Data With Jq Command; Read, Write & Modify the JSON Data with Filters, Conditions & Functions
This course is for anyone who works with JSON on Unix/Linux Command-line or using Bash Shell Scripts.
Currently, DevOps Automation is more into REST APIs usage and REST APIs Response is JSON. So, to implement bash shell scripts by using REST APIs then you must know how to parse the response of REST API (I.e, parsing JSON Data).
JQ is a command-line utility developed to Parse JSON data. Parsing JSON Data is nothing but - Reading, Writing and Modifying the JSON Data.
We can also parse JSON Data with sed, awk, or grep commands but these are not perfect utilities to Parse JSON Data because we have to write more complex logic to work with JSON Data,
Its very easy to work with JSON Data using Jq Command. JQ supports filters, function, conditions, operators, and other language features.
What You Will Learn here:
Learn the basics of Jq
Explore how to Parse (read and write) JSON Data with Jq Command
Learn how to use Jq Command in Bash Shell Scripting
Find out how to pretty print json in the command line
Learn to use different type of filter on JSON Data
Discover how to use Jq select function with iterator filter and map function
Prerequisites
Linux/Mac System to Practice
Knowledge on Command Line
Basic Knowledge on Usage of Pipelines and redirections
Basic Knowledge on JSON Data
Course Content
- 16 section(s)
- 44 lecture(s)
- Section 1 Introduction
- Section 2 Environment Setup
- Section 3 Jq Command Syntax, Filters & Options
- Section 4 Different ways to Pass JSON Data as an Input to Jq Command
- Section 5 Working With Arrays
- Section 6 Constructing null, number, string, Boolean, arrays and objects using jq
- Section 7 Jq Command With Exit Status & Creating Shell Variables from Jq Result
- Section 8 Jq Pipes
- Section 9 Introduction to Jq Functions
- Section 10 Working with OS Variables
- Section 11 join & split and range Functions
- Section 12 Operations on Strings
- Section 13 Type Conversion
- Section 14 has, select, map & reduce functions
- Section 15 Formatting JSON Data
- Section 16 Practice
What You’ll Learn
- Parsing JSON Data with Jq Command, Identify, Field and Iterator Filters, Functions of Jq Command, Usage of Jq Command in Shell Scripts, Converting JSON Data into csv and tsv formats
Skills covered in this course
Reviews
-
SScott Hibbitts
It was ok. Nothing that would justify a 3 hour course, but I still appreciated it for what it was worth.
-
AAditya Khanna
to the point course, all topics were explained in a lucid fashion, having said that more complex examples would have been better
-
AAndy Reddington
Did what it said it would which was a basic intro to jq. Although I was hoping for some more advanced topics. Did miss the reduce function out.
-
SSergio Pedone
I've faced JSON data and JQ for work, on a try and fail fashion. I've decided to build a more solid theory and this course had been the best choice I've made for this task.