bottleQuery is a small terminal UI for exploring JSON files with fast path-based queries and autocomplete.
It opens a JSON file from the current directory, then lets you inspect values with expressions like bq.user.name or bq.items[0].price.
- Go 1.24+
- One or more
.jsonfiles in the project root
go run .Build a binary:
go build -o bottleQuery .
./bottleQuery- Launch the app.
- Select a JSON file from the file picker.
- Query the loaded document using the
bqprefix.
Only .json files in the current directory are listed.
bq
bq.user
bq.user.name
bq.items[0]
bq.items[0].price
$tree
help
quit
↑/↓: move through filesTab: autocomplete file nameEnter: open selected fileEsc: quit
Tab: autocomplete keys and indexesEnter: run query↑/↓: browse query historyCtrl+D: return to file pickerEsc: quit
bqreturns the full JSON document.- Array access uses bracket notation, for example
bq.results[2]. $treeprints a readable structure of the loaded JSON.helpshows the built-in usage summary inside the app.