vue-json-pretty
A JSON tree view component that is easy to use and also supports data selection
by leezngFree
Description
vue-json-pretty is a Vue component that displays JSON as an interactive tree. It is easy to use, and it also supports selecting data within the tree. The project's demo site shows several usage scenarios, including a basic view, a virtual list for large data sets, a selector mode and an editable mode. You can switch on options such as icons, the length of each collection, line display, line numbers, double quotes, key and value spacing, and whether brackets collapse on click. Indent width, the depth to expand to, collapsible paths and light or dark themes are all configurable. Slots let you render your own content for node keys, node values and node actions, and each can be set to a default, hidden or custom mode. The demo shows the component rendering a sample API response with nested arrays and objects. The project is published as a Vue package and the source is on GitHub. It is aimed at developers who want to display API responses or other JSON in a readable, collapsible format inside a Vue application.…
Highlights
- Collapsible JSON tree for Vue
- Virtual list for large data
- Selectable data
- Editable mode
- Customisable slots and themes
Ratings & Reviews
No ratings yet
Be the first to rate vue-json-pretty.
People also visit
vue-json-pretty FAQ
What is vue-json-pretty?
A Vue component that shows JSON as a readable, collapsible tree.
Can I select data in the tree?
Yes. The demo includes a selector mode for choosing data within the tree.
Does it handle large JSON?
The demo includes a virtual list scenario, which is meant for large data sets.
Can I customise how nodes look?
Yes. Slots let you render your own node keys, values and actions, and you can set light or dark themes.
Can users edit the JSON?
The demo includes an editable mode.
Where is the source?
On GitHub at leezng/vue-json-pretty.
What are the best vue-json-pretty alternatives?
Popular alternatives to vue-json-pretty include vue-json-tree-view, json-view-cn and react18-json-view. See all vue-json-pretty alternatives


















