Skip to content

energon-a-secas/json-studio-site

Repository files navigation

JSON Studio — Visual JSON Builder

Build any JSON structure by dragging typed blocks. Edit keys and values inline, preview with syntax highlighting, import or export instantly. No install, no build step.

Live HTML5 CSS3 JavaScript Claude Code License


A drag-and-drop JSON editor for building any JSON structure visually. No install, no build step.

Features

  • Block palette — drag Object, Array, String, Number, Boolean, or Null blocks onto the canvas
  • Inline editing — rename keys and edit values directly in the tree
  • Type color system — blue = object, purple = array, green = string, amber = number, pink = boolean
  • Nested trees — collapse/expand subtrees, drag to reorder, depth indicated by left-border color
  • Live preview — syntax-highlighted JSON output in the right panel
  • Edit mode — paste raw JSON directly; parse errors shown inline
  • Import / Download — load any .json file or save the result
  • Open in Visualizer — send current JSON to the JSON Visualizer to explore, filter, and pivot
  • Templates — start from empty object/array, array of objects, or grouped (pivot-friendly) shape
  • Keyboard — Delete node, Expand/Collapse all (Ctrl+Shift+E / C), Copy node as JSON (Ctrl+Shift+J)

For JSON shapes that work best with the Visualizer (flat list, grouped, pivot), see docs/patterns.md.

Running

Open index.html directly in a browser. No dependencies, no server required.

python3 -m http.server 8777
# open http://localhost:8777

Architecture

Architecture

Single file: index.html (~1100 lines, inline CSS + JS). No build step, no dependencies.

State lives in memory only (no localStorage). Core structures:

  • root — root node { id, type, key, children, collapsed }
  • nodeMap — flat { id → node } for O(1) lookup
  • _drag — ephemeral drag state { source: 'palette'|'canvas', type?, nodeId? }

Rendering: every state mutation calls render() → rebuilds #tree-root DOM from scratch → calls updateOutput() to refresh the JSON panel.

Live

jsonstudio.neorgon.com


Part of Neorgon

About

Build and inspect JSON visually with a drag-and-drop block editor

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors