return to table of content

Show HN: jnv: interactive JSON filter using jq

croemer
4 replies
18h53m

Very cool, small nitpicks: - Very slow for medium-sized JSON (16MB) - Fonts are too dark (made a PR) Looking for performant alternatives, I found fx (https://fx.wtf) which doesn't have the jq features but is a fast json viewer.

teaearlgraycold
1 replies
17h47m

We have to deal with 50+MB JSON files at work so it’d be awesome if jnv could handle that.

pdimitar
0 replies
4h3m

jless is pretty fast with everything I used on it, and has some limited searching capabilities: https://jless.io/user-guide

callwhendone
1 replies
18h49m

Very slow for medium-sized JSON (16MB)

If aqny came here for fun, I think he just found it. Working on performance issues is the best.

croemer
0 replies
18h40m

He had found it already before I posted here!

bipvanwinkle
3 replies
20h51m

Looks awesome, one of my frustrations with jq has always been that I can't see what data I'm going to be retrieving until I run it.

tejtm
2 replies
20h29m

This can help with seeing the data structure which might help with incrementaly creeping up on what values you are looking for.

https://github.com/TomConlin/json_to_paths

pdimitar
0 replies
4h0m

Does not seem to be the same as `gron` from what I can see, `gron` makes JSON greppable and diffable, whereas `json_to_paths` seems to be outputting `jq` paths for each element, making it easy to select it.

adammarples
3 replies
20h38m

I was thinking, would this be possible using nothing more than fzf?

LelouBil
0 replies
15h20m

Wow, you can really do a lot of very different stuff with a fuzzy finder

neeh0
1 replies
20h20m

what is the difference between this and jiq and ijq?

croemer
0 replies
18h52m

jiq is no longer maintained

zuck_vs_musk
0 replies
14h33m

Rust guys - look this beautiful performant CLI tool that will make you more productive

JS guys - look at my new JS framework that you can use to do 15th rewrite of your website

I wonder how come communities evolve in this way.

userb
0 replies
17h2m

How to copy the filter data?

tieway59
0 replies
12h38m

Good job. I've been looking for this kind of tool for a while, would anyone inform me how to name them? I mean some json editor tui-software with jq-like viewer.

roydivision
0 replies
11h10m

This looks great as a way of interactively build jq queries.

peterohler
0 replies
19h54m

Very cool. I don't know if it's too much of an ask but could you adopt that to also work with OjG which uses JSONPath for instead of the jq syntax. I'd be glad to help if you are up for it. My apologies if I am out of line.

parentheses
0 replies
15h4m

This is awesome!! I will be installing this as soon as I grab my laptop.

I was immediately drawn to your post because I'd made something similar.

https://github.com/bigH/interactively.git

I wonder if you could generalize the idea to support many more commands having an interactive interface on the CLI. I have long imagined a "command builder" which depending on cursor position would load the appropriate docs and display them as you edit your command line.

panchicore3
0 replies
19h28m

feeling using ipython

malkia
0 replies
15h50m

no windows?

jiehong
0 replies
9h20m

If you use Sublime Text, there is a plugin that allows you to do that too [0].

Disclaimer: I wrote that plugin some time ago.

[0]: https://packagecontrol.io/packages/Jq

janpmz
0 replies
5h25m

Sometimes I wish I could search within a json output in the browser or IDE. But the problem is not urgent enough to spend time on it.

gudzpoz
0 replies
6h5m

If you use Emacs, there is also jq-mode. But jnv's filter auto-completion is really a killer feature for me.

[1] https://github.com/ljos/jq-mode

evnix
0 replies
10h40m

I would want everyone to know about the alternative, "fx"

You can do a lot more with it like map filter reduce etc and the semantics are closer to what you already know. Supports YAML too.

https://fx.wtf/getting-started

elmt35
0 replies
2h11m

I was looking for a tool to dynamically filter and view JSONL log files. Ended up going with [VisiData](https://www.visidata.org/).

If you’re paraing JSONL (json lines), I highly recomend it.

ddtaylor
0 replies
18h19m

jsoncurses

callwhendone
0 replies
18h55m

Amazing tool.

akafazov
0 replies
8h21m

Pretty cool little tool.

It would be even cooler if it highlighted matched keys while typing.

CacheThrasher
0 replies
20h37m

This is very cool! Any plans to make it also be able to write the filtered result to a file/stdout? I'd love to contribute that, but I'm only through 3 chapters of the Rust book.

3PS
0 replies
14h45m

This looks really exciting - will definitely check it out.

Until now I've been using jq with up [0] for interactive queries, but I don't find myself liking up's UX much (especially for long queries or non-ASCII data) so I'm keen on looking for a replacement.

[0]: https://github.com/akavel/up