fx – terminal JSON viewer

Voyager@psychedelia.ink to Linux@lemmy.ml – 66 points –
fx – terminal JSON viewer
fx.wtf
6

What use cases does fx fulfill that other tools like jq or your editor don't?

I haven't tried fx yet (but I will soon enough!) but my main gripe with jq is that its not very intuitive or userfriendly to pass arguments to get what I want out of it. fx seems to offer an interactive (TUI) way to interact with its content, wich might be better suited for my usercase where I just want to consume the logs with my eyes. jq is better as a pipe between two commands to process the json data.

This looks nice, but today I just found out about nushell which seems to do it all.

My main gripe with nushell is that you can't select rows that contain empty fields. As in not NULL but straight up don't exist, but this is very common for tools that output json. E.g. you use ip a with json output and since you have interfaces with different properties, the fields are empty for some interfaces and working with these tables is a PITA

Weird they wouldn't offer a "get value with key or NULL" function