jg(1)

NAME
jg - JSONPath-inspired query language for JSON, YAML, TOML, and other serialization formats

SYNOPSIS
jg [-i|--ignore-case] [--compact] [--count] [--depth] [--porcelain] [-n|--no-display] [-F|--fixed-string] [--with-path] [--no-path] [-f|--format] [-h|--help] [-V|--version] [QUERY] [FILE] [subcommands]

DESCRIPTION
JSONPath-inspired query language for JSON, YAML, TOML, and other serialization formats

OPTIONS

-i, --ignore-case
    Case insensitive search

--compact
    Do not pretty-print the JSON output

--count
    Display count of number of matches

--depth
    Display depth of the input document

--porcelain
    Machine-readable output: strip labels and colors (useful for piping)

-n, --no-display
    Do not display matched JSON values

-F, --fixed-string
    Treat the query as a literal field name and search at any depth. Searches for the field at any depth, equivalent to `(* | [*])*."<query>"`.

--with-path
    Always print the path header, even when output is piped

--no-path
    Never print the path header, even in a terminal

-f, --format <FORMAT> [default: auto]
    Input format (auto-detects from file extension if omitted)
    [possible values: auto, json, jsonl, yaml, toml, cbor, msgpack]

-h, --help
    Print help (see a summary with '-h')

-V, --version
    Print version

[QUERY]
    Query string (e.g., "**.name")

[FILE]
    Optional path to file. If omitted, reads from STDIN

SUBCOMMANDS

jg-generate(1)
    Generate additional documentation and/or completions

VERSION
v0.9.0