Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

JSON Collapsible

n1azn1az78 downloads

Display JSON data as collapsible trees in your notes.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates1

Display JSON data as beautiful, interactive collapsible trees in your Obsidian notes.

Features

  • 🌳 Collapsible JSON Trees: View JSON data with expandable/collapsible nodes
  • 🎨 Syntax Highlighting: Color-coded values (strings, numbers, booleans, null)
  • 📱 Mobile & Desktop: Works on all Obsidian platforms
  • ⚡ Lightweight: Fast rendering with minimal overhead
  • 🎯 Simple Usage: Just use standard JSON code blocks

Installation

Manual Installation

  1. Download the plugin files

    • Download the latest release files from the releases page
    • Or download these files directly from the repository:
      • main.js (required)
      • manifest.json (required)
      • style.css (optional - can be empty, styles are embedded in main.js)
  2. Locate your Obsidian vault

    • Open Obsidian
    • Go to Settings → About → Vault
    • Note the vault folder location on your system
  3. Create the plugin folder

    • Navigate to your vault folder
    • Go to .obsidian/plugins/ (create the plugins folder if it doesn't exist)
    • Create a new folder called json-collapsible
  4. Copy the plugin files

    • Copy the downloaded files into the json-collapsible folder
    • At minimum, you need main.js and manifest.json
    • Your folder structure should look like:
      YourVault/
      └── .obsidian/
          └── plugins/
              └── json-collapsible/
                  ├── main.js
                  ├── manifest.json
                  └── style.css (optional)
      
  5. Enable the plugin

    • Restart Obsidian or reload the vault
    • Go to Settings → Community plugins
    • You should see "JSON Collapsible" in the list
    • Toggle it on to enable the plugin

Usage

Once installed, you can display JSON data in your notes using JSON code blocks:

Basic Example

```json
{
  "name": "John Doe",
  "age": 30,
  "email": "[email protected]"
}
```

Complex Example

```json
{
  "users": [
    {
      "id": 1,
      "name": "Alice",
      "active": true,
      "roles": ["admin", "user"]
    },
    {
      "id": 2,
      "name": "Bob",
      "active": false,
      "roles": ["user"]
    }
  ],
  "metadata": {
    "total": 2,
    "page": 1,
    "lastUpdated": "2024-01-01"
  }
}
```

Features in Action

  • Click the ▼ icon to collapse a node
  • Click the ▶ icon to expand a collapsed node
  • Item count is shown when a node is collapsed
  • Color coding:
    • 🟢 Green for strings
    • 🟡 Yellow for numbers
    • 🔵 Blue for booleans
    • Gray for null values

Troubleshooting

Plugin doesn't appear in the list

  • Make sure the required files (main.js and manifest.json) are in the correct folder
  • Check that the folder is named exactly json-collapsible
  • Try restarting Obsidian completely

JSON not rendering properly

  • Verify your JSON is valid (you can use a JSON validator like JSONLint)
  • Make sure you're using triple backticks with json language identifier
  • Check that the plugin is enabled in Settings → Community plugins

Invalid JSON error

If you see an "Invalid JSON" message, your JSON syntax has an error. Common issues:

  • Missing commas between properties
  • Trailing commas (not allowed in JSON)
  • Unquoted keys
  • Single quotes instead of double quotes

Requirements

  • Obsidian v0.15.0 or higher

Support

If you encounter any issues or have suggestions:

  • Open an issue on GitHub
  • Provide details about your Obsidian version and the issue you're experiencing

License

This project is open source and available under the MIT License.

Development

To build or modify the plugin:

  1. Clone the repository
  2. Navigate to the repository root
  3. Make your changes to the files:
    • main.js - Main plugin code and embedded styles
    • manifest.json - Plugin metadata
    • style.css - Optional (currently unused, styles are in main.js)
  4. Copy the modified files from json-collapsible/ to your vault's .obsidian/plugins/json-collapsible/ folder for testing
  5. Restart Obsidian or reload the vault to see your changes

Note: This plugin embeds styles directly in main.js using the addStyles() method, so style.css is not currently used.


Enjoy visualizing your JSON data in Obsidian! 🎉

91%
HealthExcellent
ReviewSatisfactory
About
Display JSON as interactive, collapsible trees with color-coded values for strings, numbers, booleans, and null. Render quickly on desktop and mobile with a lightweight viewer. Convert standard JSON code blocks into readable, expandable views inside notes.
JSONVisualizationSyntax
Details
Current version
1.0.0
Last updated
5 months ago
Created
5 months ago
Updates
1 release
Downloads
78
Compatible with
Obsidian 0.15.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
n1azn1az
GitHubn1az
  1. Community
  2. Plugins
  3. JSON
  4. JSON Collapsible

Related plugins

Advanced Canvas

Supercharge your canvas experience. Create presentations, flowcharts and more.

Excalidraw

Visual PKM powerhouse. Create and edit Excalidraw drawings.

Mermaid Tools

Improved Mermaid.js experience: visual toolbar with common elements and more.

Maps

Adds a map layout to bases so you can display notes as an interactive map view.

Life Tracker

Capture and visualize the data that matters in your life.

Strange New Worlds

Reveal networked thought and the strange new worlds created by your vault.

Charts

Easily create interactive charts in your notes.

Kroki

Render Kroki diagrams.

VSCode Editor

Edit Code Files like VSCode.

Markwhen

Create timelines, gantt charts, calendars, and more using markwhen.