Skip to content
This repository was archived by the owner on May 14, 2020. It is now read-only.
This repository was archived by the owner on May 14, 2020. It is now read-only.

Undefined values are not presented #14

Closed
@mdziekon

Description

@mdziekon

It appears that undefined values are not shown at all in the tree, even when our objects have explicitly created keys with this value. But they are being added to the "keys" counter label, so this looks kind of weird - seeing, say, "3 keys" in the counter, but expanded view shows only 2 of them which have defined values.

Looking at the codebase, it's probably a simple fix, so I'll provide a PR with a patch.
Edit: PR: #15

Example that shows the problem:

With the following object:

{
    object: {
        foo: 'bar',
        baz: undefined
    },
    test: {
        my: undefined
    }
}

The actual outcome is shown at the following screenshot:
json-pre-fix

The expected outcome should be as on the next screenshot:
json-fix

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions