jsoncrack.com icon indicating copy to clipboard operation
jsoncrack.com copied to clipboard

[BUG]: The child nodes of the same parent are rendered at different levels

Open codetiger opened this issue 3 years ago • 3 comments

Issue description

The child fields of the same parent are rendered at different levels.

Sample JSON json

Current Render tree

The field "child3" looks like a child node of "child1,child2" which is not correct.

Media & Screenshots

No response

Operating system

  • OS: macOS Monterey:

  • Browser: Safari

  • Any other details...

Priority this issue should have

Low (slightly annoying)

codetiger avatar Sep 08 '22 06:09 codetiger

To display parents like arrays and objects that is the intended behaviour, what would be the expected behaviour in this case?

AykutSarac avatar Sep 08 '22 07:09 AykutSarac

My expectation is something like the below diagram

image

Please ignore the alignment in the image

codetiger avatar Sep 08 '22 09:09 codetiger

I see similar comments about it, however it will directly impact negatively when visualizing huge json files. Though current one may not reflect what exactly the data is, it illustrates in a better way in general.

AykutSarac avatar Sep 11 '22 19:09 AykutSarac