Important
Please see https://github.com/rmartine-ias/jq-fish-plugin instead.
A plugin for Oh My Fish.
$ omf install https://github.com/jihchi/jq-fish-plugin.git
# read from a file
$ jqrepl [file]
# read from stdin
$ cat <json> | jqrepl
$ curl -s pie.dev/json | jqrepl
MIT © Jihchi Lee et al
Many thanks for your help!