Skip to content

A JSON viewer/editor for multi-line string values - allows to render and edit strings in plain mode (handles escaping/unescaping). Ideal for editing ShareGPT or Alpaca type LLM training examples.

License

Notifications You must be signed in to change notification settings

dpavlis/jsonlight_plus

 
 

Repository files navigation

JSON Light Plus

🚀 Live Demo

About

A JSON/JSONL viewer and editor designed for readability and practical editing workflows.

JSON Light Plus screenshot

Screenshot of JSON Light Plus in action — click for the full-size image.

Getting Started

Option 1: Use Online (Easiest)

Just visit https://dpavlis.github.io/jsonlight_plus/ in your browser—no installation needed!

Option 2: Run Locally

  1. Clone this repository (or download just the docs subdirectory)
  2. Open docs/index.html in your browser
  3. Start viewing and editing your JSON/JSONL files

Completely standalone—runs entirely in your browser with no dependencies.

Key Features

Multi-line String Display (Original)

Unlike most JSON viewers, JSON Light properly renders multi-line string values with actual line breaks instead of \n escape sequences. No more cluttered, compact passages—see your text as it's meant to be read.

Advanced Editing Capabilities (Plus Version)

This Plus version adds powerful editing features specifically designed for working with LLM training data formats like ShareGPT and Alpaca:

  • Paging: Split large JSON(L) files into manageable pages for easier navigation and editing
  • Plain-text editing: Edit JSON string properties as plain text—no manual escaping of newlines, quotes, or special characters (with optional syntax highlighting for working with code snippets)
  • Duplicate & delete: Quickly clone or remove array elements, perfect for managing conversational training examples
  • Search & replace: Find and modify content across your dataset efficiently (with Regex support for advanced use cases)

Why This Fork Exists

While preparing LLM training data in ShareGPT (JSONL) and Alpaca (JSON) formats, I struggled to find a free tool that let me edit multi-line code examples and conversation text without wrestling with JSON escaping. This fork bridges that gap by combining the original JSON Light's excellent display with practical editing capabilities.

Acknowledgments

Grateful thanks to:

  • The original JSON Light author for the solid foundation
  • GitHub Copilot for accelerating the development of these extensions

About

A JSON viewer/editor for multi-line string values - allows to render and edit strings in plain mode (handles escaping/unescaping). Ideal for editing ShareGPT or Alpaca type LLM training examples.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 100.0%