An introduction to the magic of jq - Understanding the basics of jq with a realistic example

This page summarizes the projects mentioned and recommended in the original post on /r/commandline

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • yq

    yq is a portable command-line YAML, JSON, XML, CSV, TOML and properties processor

  • There's also yq for YAML, XML, CSV - https://mikefarah.gitbook.io/yq/

  • yamlpath

    YAML/JSON/EYAML/Compatible get/set/merge/validate/scan/convert/diff processors using powerful, intuitive, command-line friendly syntax.

  • I'm no expert in any of these tools, but here are some yamlpath and jello examples to match:

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • jello

    CLI tool to filter JSON and JSON Lines data with Python syntax. (Similar to jq)

  • I'm no expert in any of these tools, but here are some yamlpath and jello examples to match:

  • gron

    Make JSON greppable!

  • Thank you for these! You likely already know, but there is also gron - https://github.com/TomNomNom/gron - which takes a slightly different philosophical stance than jq, but the end result is something that fits in easier with the other existing line based UNIX tools.

  • pup

    Parsing HTML at the command line

  • And for HTML, there is also https://github.com/ericchiang/pup.

  • dasel

    Select, put and delete data from JSON, TOML, YAML, XML and CSV files with a single tool. Supports conversion between formats and can be used as a Go package.

  • And there also is dasel that is comparable to jq / yq, but supports JSON, YAML, TOML, XML and CSV with zero runtime dependencies while working on all platforms.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts