Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse json? #17

Open
dufferzafar opened this issue Jun 22, 2022 · 3 comments
Open

Parse json? #17

dufferzafar opened this issue Jun 22, 2022 · 3 comments

Comments

@dufferzafar
Copy link
Contributor

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
Copy link
Owner

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
Copy link
Contributor Author

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants