jq

jq deals in filters for JSON. "." is the simplest filter which returns everything 1.

Filters allow you to access JSON information as though {..} is an object.

.[] allows you to perform array operations. For example, getting the third element in an array: .[3] . .[] gets all the elements in an array.

  • htmlq is a library for jq like functionality in HTML
  • fq jq for binary files
  • rq - record analysis and transformation (multi format)
  • yq - jq for YAML

References

1.
Bell, A. An Introduction to JQ. at https://earthly.dev/blog/jq-select/ (2021).

Links to this note