Skip to content

JSON Editor v1.6.1

Choose a tag to compare

@JayVDZ JayVDZ released this 09 Dec 15:20
· 9 commits to main since this release

JSON Editor - v1.6.1

Offline JSON editor with syntax highlighting, real-time validation, and graph visualisation.

Installation

  1. Download json-editor-v1.6.1.zip
  2. Extract the archive
  3. Open index.html in your browser

What's New

🐛 Browser Crash Fix for Large JSON Documents

Fixed a critical issue where Microsoft Edge would crash when loading JSON documents around 14KB or larger.

⚡ Performance Improvements

Event Delegation

  • Replaced individual fold icon listeners with event delegation
  • Prevents memory leaks from listener accumulation on every editor update

Debounced Updates
Added debouncing to expensive DOM operations:

  • Line number updates: 100ms debounce
  • Syntax highlighting: 50ms debounce
  • Prevents excessive re-rendering during rapid typing

Visualiser Safety Limits
Added safety limits to all graph visualisers to prevent browser crashes:

Visualiser MAX_NODES MAX_DEPTH
GraphVisualizer 500 20
D3ForceGraphVisualizer 500 20
D3TreemapVisualizer 500 20
D3SunburstVisualiser 500 20

When limits are exceeded, a warning indicator (⚠️ Limited to 500 nodes) is displayed instead of attempting to render all nodes.

Technical Details

  • Memory Management: Single delegated event listener instead of per-icon listeners
  • Input Performance: Debounced handlers prevent UI lag during typing
  • Graph Safety: Recursive traversal now checks depth and node count limits
  • Graceful Degradation: Large documents render partially with clear warning

Full Changelog: v1.6.0...v1.6.1


🤖 Generated with Claude Code