GJSON(1)
π NAME π
gjson β filter and extract data from JSON-like files. Bestie, this is the manual page for gjson, and she's here to serve you exactly the slice of JSON you asked for. π
It's a simple way to filter and extract data from JSON-like data structures, and it's the Python porting of the Go GJSON package. Yes, the iconic Go tool said "let me learn Python" and now we all win. π
usage: gjson [-h] [-v] [-l] [file] query
That's the whole vibe up there β one optional file, one query, and a couple of little flags. Spot the -h chillin' in there too. π
πΈ POSITIONAL ARGUMENTS πΈ
fileβ the input JSON file you wanna query, bestie. If this argument is missing, or if you set it to"-", it reads from stdin instead. So yes, you can absolutely pipe things into her, she's flexible like that. π«Άqueryβ a GJSON query to apply to the input data. This is the actual star of the show, the main character, the reason we're all here. β¨
π NAMED ARGUMENTS π
-v,--verboseβ verbosity level, and the default is quiet, no cap. By default, on error no output will be printed. Use-vto get the error message to stderr, and-vvto get the full traceback. So like, onevis "hey something's wrong", twovs is "here's the whole receipts, the full story, every frame of the movie". π-l,--linesβ treat the input as JSON Lines, parse each line, and apply the query to each line. Perfect for when your data is a whole stack of lil JSONs stacked on top of each other instead of one big blob. π¦
Also, the full documentation is literally right here, bestie: <https://volans-.github.io/gjson-py/index.html> β go read it, it's giving β¨comprehensiveβ¨.
π Author π
Riccardo Coccioli β the legend, the blueprint, the reason this exists. π
π Copyright π
2022, Riccardo Coccioli</purl> 2022, Riccardo Coccioli β that's the copyright line, keeping it real since 2022. π
Okay and for the cute sign-off: this whole page is version 1.1.0, dated Nov 23, 2025. Slay, periodt, go query something gorgeous. πβ¨π¦πΈ
π¦ where this page comes from
- ubuntu resolute: python3-gjson 1.1.0-1 Β· GPL-3.0-or-later
- ubuntu stonking: python3-gjson 1.1.0-1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms