Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>TheLensNew to Visual Studio Code? Get it now.
TheLens

TheLens

TheLens

|
3 installs
| (3) | Free
Inspect JSON, JSONL, logs, text and structured data in table, tree, raw, and record views.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

TheLens

TheLens is a structured data viewer and inspector for Visual Studio Code.

It helps you inspect JSON, JSONL / NDJSON, log, text, and other structured data directly inside VS Code using table, tree, raw, and structure views.

Features

  • Open JSON files
  • Open JSONL / NDJSON files
  • Open log and plain text files
  • Table view for record-based data
  • Tree view for nested structures
  • Raw view
  • Sidebar file explorer
  • Sidebar structure explorer
  • Search records
  • Flatten nested JSON objects for table display
  • Array preview for nested values
  • Multi-file loading

Supported File Types

  • .json
  • .jsonl
  • .ndjson
  • .log
  • .txt

Usage

  1. Open Visual Studio Code.
  2. Click the TheLens icon in the Activity Bar.
  3. In the Files view, click Open Data File.
  4. Select one or more supported files.
  5. Explore the data using:
    • Table
    • Tree
    • Raw
    • Structure

You can also open the Command Palette and run:

TheLens: Open Data File

Table View

The table view is designed for record-oriented data such as JSON arrays and JSONL / NDJSON files.

Nested object fields are flattened into dotted column names where possible.

Example:

{
  "summary": {
    "positive": 10,
    "negative": 3
  }
}

may appear as:

summary.positive
summary.negative

Arrays are shown using a compact preview rather than being expanded into many columns.

Tree View

Tree view is useful for deeply nested objects and arrays.

It preserves the original hierarchy and allows you to expand or collapse nested values.

Raw View

Raw view shows the source data in a readable form.

For structured JSON data, TheLens formats the content using indentation.

Current Status

TheLens is under active development.

The first release focuses on reliable inspection of structured data. Future releases may add features such as:

  • column sorting
  • per-column filtering
  • resizable columns
  • record inspector
  • virtual scrolling
  • large-file streaming
  • additional file formats

Privacy

TheLens processes files locally inside Visual Studio Code.

The current version does not upload opened files to an external service.

Issues and Feedback

If you find a bug or have a feature request, please use the repository issue tracker once the project repository is public.

Author

therif (Arif Kurniawan)

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft