Skip to content

Customisable tree display - new feature #76

Open
@AntunBartonicek

Description

@AntunBartonicek

It would be useful if tree display logic could be slightly extended so that for Objects it additionally displays one of the property values from that object.
For simplicity, this setup could be part of the right click context menu along with other available commands.
Example: Right click on property from that object and select: Set as identifier

Currently it looks like this:
ourArray: [Array]
+[0]: [Object]
+[1]: [Object]
+[2]: [Object]
+[3]: [Object]

If we know that every item has property "name" then new setup would enable us right click on it and chose Set as identifier.
After that tree would be refreshed (automatically or manually) and would look like this:
ourArray: [Array]
+[0]: [Object] [name: "One"]
+[1]: [Object] [name: "Two"]
+[2]: [Object] [name: "Three"]
+[3]: [Object] [name: "Four"]

If property not found on all objects in this tree then of course no error should be thrown and it simply would display it as before.

I know something like this would greatly help people who have to inspect larger JSON files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    hacktoberfestOpen For Hacktoberfest PRs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions