Skip to content

[BUG]: Incorrect visualization of JSON #468

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

Open
SoCuul opened this issue Mar 19, 2025 · 3 comments
Open

[BUG]: Incorrect visualization of JSON #468

SoCuul opened this issue Mar 19, 2025 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@SoCuul
Copy link

SoCuul commented Mar 19, 2025

Issue description

Input the following JSON

[
  {
    "stringValue": "test",
    "arrayValue": [],
    "testKey": true
  },
  {
    "testKey": false
  }
]

Media & Screenshots

Bug

First Object

Second Object

Operating system

  • OS: macOS Sequoia 15.3.2
  • Browser: Firefox Stable 136.0

Priority this issue should have

Medium (should be fixed soon)

@SoCuul SoCuul added the bug Something isn't working label Mar 19, 2025
@AykutSarac
Copy link
Owner

Empty arrays and objects are not rendered, that's intended behaviour.

@SoCuul
Copy link
Author

SoCuul commented Mar 20, 2025

The problem is that on the graph there is the object with two identical keys. This happens when other objects are in the array as well, causing the key to look like it belongs to another item in the array

@SoCuul
Copy link
Author

SoCuul commented Mar 26, 2025

@AykutSarac this proves my point, now no objects/arrays are empty and the error still occurs.

[
  {
    "stringValue": "test",
    "arrayValue": ["a"],
    "testKey": true
  },
  {
    "testKey": false
  }
]
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants