Thanks again for your project, it's been very helpful to have a web component implementation of something so useful like this. I'm using it to display the JSON for some components in my rewrite of Semantic UI. Here's a screenshot to give you an idea
Feat Request
Showing inline json can helpful for small data structures to make it easier to preview the overall structure without having to unfold content each time if the content length permits showing it inline.
This is a great feature request, however I think it needs a major rearchitecture of the whole rendering algorithm to decide when to "expand inline". I might look into it but can't promise anything too soon
Thanks again for your project, it's been very helpful to have a web component implementation of something so useful like this. I'm using it to display the JSON for some components in my rewrite of Semantic UI. Here's a screenshot to give you an idea
Feat Request
Showing inline json can helpful for small data structures to make it easier to preview the overall structure without having to unfold content each time if the content length permits showing it inline.
Chrome Devtools
before expanding![image](https://github.com/mohsen1/pretty-json/assets/23123/cc9a2c07-2b99-4a23-92f8-92611e1fec5c)
after expanding![image](https://github.com/mohsen1/pretty-json/assets/23123/efee30b6-9f9e-421c-94c7-cf1507704440)
Pretty-JSON
And here's the same JSON in pretty-json
before expanding![image](https://github.com/mohsen1/pretty-json/assets/23123/8f37d0c6-87a4-4bb6-882d-61c24a2fadd0)
after expanding![image](https://github.com/mohsen1/pretty-json/assets/23123/a38bb37d-b0b6-456c-a00b-cf36a4d685f9)