PaulJuliusMartinez / jless

jless is a command-line JSON viewer designed for reading, exploring, and searching through JSON data.
https://jless.io
MIT License
4.73k stars 91 forks source link

feature request: accept pipe of json lines and tolerance of non json #102

Open kokokenada opened 1 year ago

kokokenada commented 1 year ago

Context:

What would be cool:

This would make server debugging similar to debugging in the browser console, where you can console.log(someObject) and can then expand and explore the object.

neilotoole commented 1 year ago

Agreed on the need for this. My use case is similar... I have an OSS project sq that outputs JSON logs. I want to be able to tail/follow those logs. Something like:

$ tail -f sq.log | jless

# or even
$ jless -f sq.log
aexvir commented 8 months ago

joining here also to request this, in my use case our service outputs json logs, then I pipe that to jq to only select the ones I care about, and I need some nice way to inspect the output of that in a continuous stream, so I'm doing something like

service | jq --unbuffered '. | select(.event | endswith("debug.err")) | .["error.message"]' | jless

but sadly it doesn't work