Skip to content
This repository was archived by the owner on Apr 11, 2022. It is now read-only.
This repository was archived by the owner on Apr 11, 2022. It is now read-only.

Null values are shown as "TODO" string #7

@mrVanboy

Description

@mrVanboy

Null values are shown in a tree as "TODO" string.

To reproduce this:

echo '{"foo":null}' | jsonui

Output is:

┌─ tree ──┐ ┌─ text ───────────────────┐
│root     │ │{                         │
│└─ foo   │ │  "foo": "TODO"           │
│         │ │}                         │
│         │ │                          │
│         │ │                          │
│         │ │                          │
│         │ │                          │
│         │ │                          │
│         │ │                          │
│         │ │                          │
│         │ │                          │
│         │ │                          │
│         │ │                          │
│         │ │                          │
└─────────┘ └──────────────────────────┘
┌─ path ───────────────────────────────┐
└──────────────────────────────────────┘

Expect this:

┌─ tree ──┐ ┌─ text ───────────────────┐
│root     │ │{                         │
│└─ foo   │ │  "foo":  null            │
│         │ │}                         │
│         │ │                          │
│         │ │                          │
│         │ │                          │
│         │ │                          │
│         │ │                          │
│         │ │                          │
│         │ │                          │
│         │ │                          │
│         │ │                          │
│         │ │                          │
│         │ │                          │
└─────────┘ └──────────────────────────┘
┌─ path ───────────────────────────────┐
└──────────────────────────────────────┘

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