A lightweight VS Code extension for previewing JSONL (JSON Lines) files with syntax highlighting.
Note: This extension was developed based on version 0.4.1 of the following extension[https://github.com/toiroakr/jsonl-editor]. The key difference is that while jsonl-editor loads libraries from CDN, this extension was created to work in environments without internet connectivity.
Features
Line-by-line Preview: View formatted JSON for each line in a JSONL file
Navigation: Easy navigation between lines with Prev/Next buttons
Line Jumping: Go to specific line number
Copy to Clipboard: Copy the current JSON to clipboard with one click
Syntax Highlighting: Color-coded JSON with keys, strings, numbers, and literals
Offline Support: Works without internet connection (no external dependencies)
Real-time Updates: Preview updates automatically as you navigate through the file
Usage
Quick Start
Open a .jsonl file in VS Code
Right-click in the editor
Select "Preview JSONL" from the context menu
A preview panel will open on the right side showing the formatted JSON for the current line
Navigation
Prev/Next buttons: Navigate to previous or next line
Line input: Type a line number and press Enter to jump to that line
Copy JSON button: Copy the current JSON to clipboard
Cursor movement: The preview automatically updates when you move your cursor in the editor