Live data from Hacker News

Show HN: Jless, a command-line JSON viewer

pauljuliusmartinez.github.io

61–70 of 91 posts

Re: Show HN: Jless, a command-line JSON viewer

#62
post #60

Humble request: musl version Keeping a glibc chroot directory takes up a fair bit of space, leaving less space available for other stuff. Whenever I try compiling Rust programs it exhausts the available space I have. Hence I am resorting to begging, starting now (because this program sounds potentially very useful.) Please folks, if possible, include musl versions in addition to glibc. :)

It's 2022 and you're running out of disk space?

[deleted]

Re: Show HN: Jless, a command-line JSON viewer

#63
post #25

I'm loving it, and certainly will be using it a lot. One thing, though - 2MB seems like a lot for program of this kind. In comparison, jq on my system has 30kB.

I'll bet there are some Rust build options they can tweak to get it way down...

Here are a couple of options if anyone is curious: https://github.com/johnthagen/min-sized-rust

Re: Show HN: Jless, a command-line JSON viewer

#64
post #60

Humble request: musl version Keeping a glibc chroot directory takes up a fair bit of space, leaving less space available for other stuff. Whenever I try compiling Rust programs it exhausts the available space I have. Hence I am resorting to begging, starting now (because this program sounds potentially very useful.) Please folks, if possible, include musl versions in addition to glibc. :)

It's 2022 and you're running out of disk space?

One might want to include jless in a docker image.

Re: Show HN: Jless, a command-line JSON viewer

#65
post #47

This is great! I use the JSONVue Chrome extension at work to display JSON files, and I can see the similarities. If I could suggest one thing: ctrl-u and ctrl-d are pretty common shortcuts for page up and page down, they're even supported in Vim and less. It would make sense to add support for those in addition to the actual PageUp/PageDown keys.

Maybe hijacking the thread, but if you prefer to stay in the browser give also a try to Virtual Json Viewer extension [1][2]. I developed it to navigate large json files at work and it also integrates JQ.

unrelated: this is my very first comment on HN, hurray!

[1] Chrome Web Store: https://chrome.google.com/webstore/detail/virtual-json-viewe...

[2] Github: https://github.com/paolosimone/virtual-json-viewer

Re: Show HN: Jless, a command-line JSON viewer

#66
post #59

Can you pipe output from another command to jless and have it detect when it finds a JSON document? I often tail the logs of my servers and then need to inspect the JSON data from say an API call. I usually do that by copying the entirety of the log into a bug report and then extracting the relevant pieces out and then using jq and it's a big hassle. Could I use jless to make this easier? Really nice looking tool and…

For this specific use case there are log view tools that allow you to navigate logs and can automatically format json, xml etc when inside a log line. For example lnav: https://lnav.org/features#pretty-print-view

Re: Show HN: Jless, a command-line JSON viewer

#67
I'd love to see YAML support.

I can see this being useful on a daily basis for everyone who works with Kubernetes.

It's so useful that I'm going to dedicate next episode of my 100 Kubernetes Tool series to this. [1]

[1] https://youtube.com/playlist?list=PLxKcdWncGLlNiWC71kKwDj3OZ...

Re: Show HN: Jless, a command-line JSON viewer

#68

Wow, thank you so much for sharing this. I'm a frequent jq-to-less piper and probably a more frequent mobile browsing opener of ESPN scoreboards/subsequent grumbler about ESPN's web performance and experience. I think I'll get a lot of mileage out of plaintextsports as long as it stays up. I will also be sure to check out Jless next time I'm at my command line with sufficient bandwidth to tinker with my tooling/workf…

thanks for plaintextsports too!

don't know what's going on inside of espn but their web experience (mobile or not) is just terrible - and i don't bother with the app. was really looking for something like how simple yahoo sports was back in the day, and plaintextsports seems to be it.

Re: Show HN: Jless, a command-line JSON viewer

#69
post #68

Wow, thank you so much for sharing this. I'm a frequent jq-to-less piper and probably a more frequent mobile browsing opener of ESPN scoreboards/subsequent grumbler about ESPN's web performance and experience. I think I'll get a lot of mileage out of plaintextsports as long as it stays up. I will also be sure to check out Jless next time I'm at my command line with sufficient bandwidth to tinker with my tooling/workf…

thanks for plaintextsports too! don't know what's going on inside of espn but their web experience (mobile or not) is just terrible - and i don't bother with the app. was really looking for something like how simple yahoo sports was back in the day, and plaintextsports seems to be it.

Thanks to the both of you! plaintextsports was my real passion project over the past year (probably 3x more time spent on it than jless!), so I really appreciate it when other people find value in it. I'm a Milwaukee Bucks fan and building a site explicitly so I could follow the team more easily certainly made winning the championship more personally meaningful.

Re: Show HN: Jless, a command-line JSON viewer

#70
post #67

I'd love to see YAML support. I can see this being useful on a daily basis for everyone who works with Kubernetes. It's so useful that I'm going to dedicate next episode of my 100 Kubernetes Tool series to this. [1] [1] https://youtube.com/playlist?list=PLxKcdWncGLlNiWC71kKwDj3OZ...

Theres some 'jq for yaml/toml' projects that just convert to and from json and then use jq in the middle, seems like that would work here too.
Post reply on HN