MARKETPLACE
PLUGINS
JSON TREE VIEW
JSON Tree View logo

JSON Tree View

Published October 2026
   •    Updated October 2026

Plugin details

# JSON Tree View
Display structured JSON data as an interactive, expandable tree in your Bubble app.

JSON Tree View helps you visualize hierarchical data such as product catalogs, categories, file structures, organizational charts, nested records, and other parent-child relationships.

Provide your data as JSON, configure the tree's appearance and behavior, and let users explore nested items without overwhelming the page.

**Features**
- Display hierarchical data with expandable and collapsible nodes.
- Support parent-child relationships using node IDs and parent IDs.
- Select individual nodes or multiple nodes.
- Expose selected node IDs, text, and JSON through Bubble states.
- Optionally enable checkboxes and retrieve checked nodes.
- Search tree nodes.
- Optionally enable drag-and-drop and context menus.
- Trigger Bubble events when users interact with nodes.
- Control the initial tree expansion so users can explore data level by level.

JSON Tree View is ideal for dashboards, admin panels, product management, category browsers, and applications that need a clear way to navigate hierarchical information.

$3

One time  •  Or  $20/mo

stars   •   0 ratings
0 installs  
This plugin does not collect or track your personal data.

Platform

Web & Native mobile

Contributor details

webercraft logo
webercraft
Joined 2017   •   17 Plugins
View contributor profile

Instructions

# JSON Tree View — Documentation
**Plugin Editor:** [Open JSON Tree View in Bubble](https://bubble.io/page?id=jsontreeview&test_plugin=1791539811213x514641202824347650_current&tab=Settings&name=index&subtab=General)

**Live Demo:** [Try the JSON Tree View demo app](https://jsontreeview.bubbleapps.io/version-test?debug_mode=true)

Explore the demo to see how hierarchical JSON data is displayed and how users can interact with the tree.

## Getting Started

1. Install JSON Tree View in your Bubble application.
2. Add the **JSON Tree View** element to your page.
3. Provide valid JSON data in the element's `tree_data` property.
4. Configure selection, checkboxes, search, drag-and-drop, and other available options.
5. Use the plugin's exposed states and events in Bubble workflows.

## Data Format

JSON Tree View accepts a JSON array of nodes. Each node should contain:

- `id`: A unique identifier for the node.
- `parent`: The ID of its parent node.
- `text`: The label displayed in the tree.

Use `"#"` as the parent ID for a root node.

### Example

```json
[
 {
   "id": "products",
   "parent": "#",
   "text": "Products"
 },
 {
   "id": "electronics",
   "parent": "products",
   "text": "Electronics"
 },
 {
   "id": "clothing",
   "parent": "products",
   "text": "Clothing"
 },
 {
   "id": "laptops",
   "parent": "electronics",
   "text": "Laptops"
 },
 {
   "id": "phones",
   "parent": "electronics",
   "text": "Mobile Phones"
 }
]
```

This creates the following hierarchy:

- Products
 - Electronics
   - Laptops
   - Mobile Phones
 - Clothing

Node IDs must be unique, and each non-root node's parent must reference an existing node.

## Configuration Options

Configure the available options in the Bubble element properties:

- **Tree Data:** The JSON array used to populate the tree.
- **Multiple Selection:** Allow users to select multiple nodes.
- **Show Checkboxes:** Enable checkbox-based selection.
- **Enable Search:** Enable the tree's search functionality.
- **Search:** Supply the search text when using search.
- **Enable Drag and Drop:** Allow users to move nodes.
- **Enable Context Menu:** Enable context-menu functionality.
- **Animation:** Configure the tree's animation duration in milliseconds.

By default, the tree opens its top-level nodes while keeping deeper levels collapsed. Users can expand or collapse individual nodes to navigate the hierarchy.

## Available States

Use these states in Bubble expressions and workflows.

### Selection States

- `selected_node_id`: ID of the currently selected node.
- `selected_node_text`: Display text of the selected node.
- `selected_node_json`: JSON representation of the selected node.
- `selected_node_ids`: List of selected node IDs.

Configure `selected_node_ids` as a list of texts in the Bubble plugin editor.

### Checkbox States

- `checked_node_ids`: JSON-formatted list of checked node IDs.
- `checked_node_json`: JSON-formatted array of checked node objects.

These states contain JSON strings that can be processed with JSON tools or sent to backend workflows.

### Event State

- `last_event`: JSON representation of the most recent supported interaction, including the event name, node information, and timestamp.

## Available Events

Use these events to trigger Bubble workflows:

- `node_selected`: A node is selected.
- `node_deselected`: A node is deselected.
- `node_double_clicked`: A node is double-clicked.
- `node_checked`: A node is checked.
- `node_unchecked`: A node is unchecked.
- `node_moved`: A node is moved using drag-and-drop.
- `node_created`: A node is created.
- `node_renamed`: A node is renamed.
- `node_deleted`: A node is deleted.

Checkbox events require checkboxes to be enabled. Drag-and-drop events require the relevant option to be enabled.

## Example Use Cases

### Product Categories
Display products in nested categories and subcategories. Use `selected_node_id` to identify the selected category.

### File Explorer
Represent folders and files as parent-child nodes so users can navigate nested structures.

### Organization Charts
Represent departments, teams, and employees in a hierarchy.

### Admin Dashboards
Create navigation trees for settings, permissions, and nested resources.

## Troubleshooting

**The tree is empty**
- Ensure `tree_data` contains valid JSON.
- Verify every node has a unique ID.
- Confirm root nodes use `"parent": "#"`.

**Child nodes do not appear**
- Verify each child's `parent` matches the ID of an existing node.
- Expand the relevant parent node.

**Selected IDs are not available**
- Confirm that the appropriate state is exposed in the plugin editor.
- Verify that `selected_node_ids` is configured as a list of texts.
- Trigger a workflow after the selection event.

**Checkbox states are empty**
- Enable checkboxes.
- Verify nodes are checked and the relevant states are exposed.

**Search does not work**
- Enable search and provide a search term using the supported configuration.

For a working example, visit the [JSON Tree View demo app](https://jsontreeview.bubbleapps.io/version-test?debug_mode=true). To configure or maintain the plugin, visit the [JSON Tree View plugin editor](https://bubble.io/page?id=jsontreeview&test_plugin=1791539811213x514641202824347650_current&tab=Settings&name=index&subtab=General).

Types

This plugin can be found under the following types:
Background Services   •   Element   •   Event   •   Action

Categories

This plugin can be found under the following categories:

Resources

Support contact
Tutorial

Rating and reviews

No reviews yet

This plugin has not received any reviews.
Bubble