NikitaIvanovV / ictree

Like tree but interactive
https://nikitaivanovv.github.io/ictree/
GNU General Public License v3.0
147 stars 7 forks source link

Parse json? #17

Open dufferzafar opened 2 years ago

dufferzafar commented 2 years ago

I know this sounds far fetched, but do you think ictree could be used as an interactive JSON viewer? Like jless.

This would allow us to use ictree as an interactive tree as well, since tree supports json output as well, so something like this would work: tree -J | ictree

NikitaIvanovV commented 2 years ago

I like the idea of using ictree as JSON viewer! Although, I would like to avoid adding extra complexity. Maybe there is a tool that converts JSON to a format that ictree understands? So we could view JSON files like this:

sometool < file.json | ictree
dufferzafar commented 2 years ago

I mean, gron is such a tool, but it needs to be used with ictree -s . but that has issues like it will split on . and mess up any floating point numbers in the JSON etc.

NikitaIvanovV commented 2 years ago

Thanks for the suggestion! I will see if I can implement it.