litejs / json-lite

Fast non-blocking JSON viewer for Chrome and Firefox
195 stars 16 forks source link

Ability to auto collapse #75

Open justinseesdragons opened 2 months ago

justinseesdragons commented 2 months ago

Would like to propose a feature. On JSON documents have a preference setting to always fold nested non root-sub objects on initial load.

like this: { a: {... folded big object here...}, b: {... folded big object here...}, . . . } the same would hold true for json arrays.

This is important because the majority of JSON objects I look at are non-trivial and rather large. It really helps navigation in the document to start in a collapsed state allowing me to drill down as I need to. A collapse all / expand all button would be even better.

lauriro commented 2 months ago
justinseesdragons commented 2 months ago

Nice! sorry for not RTFM!

lauriro commented 2 months ago

Initial collapse level is still worth of thinking so I leave it open