Skip to content

Expand/collapse elements in JSON and XML #394

@ripkurrle

Description

@ripkurrle

What type of request is this?

New feature for an existing tool

Clear and concise description of the feature you are proposing

Currently there is no "in tool" way to collapse complex elements/arrays of data in JSON and XML, users would need to copy to another tool such as notepad++ to collapse large blocks of the object to get better context of the elements at the same level.

Technically this could be applied to many tools of this project (anything under XML or JSON) or other structured text types like YAML or TOML, but I specificially would find it valuable to see it in the following tools

  • /json-prettify
  • /json-to-xml
  • /xml-formatter
  • /xml-to-json

Is there example of this tool in the wild?

XML - https://jsonformatter.org/xml-pretty-print
JSON - https://codebeautify.org/jsonviewer

Additional context

Both of these object types can get very large with a lot of superfluous detail that is not needed when browsing the text, so collapsing elements you dont need is incredibly helpful.

Validations

  • Check the feature is not already implemented in the project.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • Check that the feature can be implemented in a client side only app (IT-Tools is client side only, no server).
  • Everything is written in PLAIN ENGLISH

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions