JSON Tools

gron – make JSON greppable

gron is a command-line utility that converts nested JSON into a flat series of assignment statements. This representation makes JSON easier to search using traditional text-processing utilities such as grep, sed and awk.

JSON documents often contain deeply nested objects and arrays. Searching their textual representation can reveal matching values without clearly showing where those values occur in the original structure. gron addresses this problem by including the complete path to each value in its output.

The transformation is reversible. Once the flattened representation has been searched or modified, gron can reconstruct a JSON document. This makes the application useful both for exploring unfamiliar API responses and for constructing shell pipelines that operate on selected portions of structured data.

This is free and open source software.

Key Features

  • Flatten nested JSON objects and arrays into assignment statements.
  • Display the complete path to each JSON value.
  • Produce output suitable for searching with grep and related utilities.
  • Reconstruct JSON from flattened assignment statements.
  • Process JSON supplied through files or standard input.
  • Retrieve JSON documents directly from URLs.
  • Colourise output for easier terminal inspection.
  • Process newline-delimited JSON through stream mode.
  • Represent flattened data as a JSON stream.
  • Control colour output for use in automated pipelines.
  • Support options for handling HTTPS certificate verification.
  • Integrate with shell commands for filtering and modifying data.

Website: github.com/tomnomnom/gron
Support:
Developer: Tom Hudson
License: MIT License

gron is written in Go. Learn Go with our recommended free books and free tutorials.


Related Software

JSON Tools
jqLightweight and flexible JSON processor. It's like sed for JSON
fxJSON viewer with streaming and mouse support
jaqjq clone focused on correctness, speed, and simplicity.
gronTransforms JSON into discrete assignments to make it easier to grep
gojqPure Go implementation of jq
jlessCommand-line JSON viewer written in Rust
jnvNavigates JSON offering a viewer and filter editor
JSON EditorView, edit, format, and validate JSON
DaselQuery, modify and transform structured data
jidJSON incremental digger by using filtering queries
joSmall utility to create JSON objects
jsonrepairRepair malformed and invalid JSON documents
faqBilled as a more flexible jq supporting additional formats
jelloFilter JSON and JSON Lines data with Python syntax
qqjq but an interoperable configuration format transcoder
json-tuiJSON terminal UI
jqpTUI playground to experiment with jq
emutoSmall language for manipulating and restructuring JSON and other data
svelte-jsoneditorView, edit, format, transform, and validate JSON
qoQuery JSON, CSV, and TSV files using SQL
jqlQuery and process JSON data
JaniceDesktop app for viewing large JSON files
unqeryQuery and transform JSON data
TwigTerminal JSON viewer and YAML viewer
jtcExtract, manipulate and transform source JSON
pyfxPython-native TUI JSON viewer
OTreeInteractive viewer for structured data
kirillJSON validator
jshonParses, reads and creates JSON. It's designed to be as usable as possible
jsawkLike awk, but for JSON
jiqInteractive JSON query tool

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted