Skip to main content
Glama
wayknow/clearjson

wayknow/clearjson

ClearJSON

npm version Chrome Web Store Edge Add-ons License

Datenschutzorientierter JSON-Viewer für den Browser. Kein Tracking. Komplett lokal. Dazu ein MCP-Server für KI-Agenten.

ClearJSON ist eine Chrome-Erweiterung, die JSON-Antworten in Ihrem Browser automatisch erkennt und formatiert. Entwickelt als Reaktion auf die JSON-Formatter-Kontroverse – wir werden niemals Werbung einblenden, Sie verfolgen oder Ihre Daten verkaufen.

MCP Server (Neu!)

Für KI-Agenten (Claude Code usw.): npx -y clearjson-mcp

{
  "mcpServers": {
    "clearjson": {
      "command": "npx",
      "args": ["-y", "clearjson-mcp"]
    }
  }
}

10 Tools – formatieren, validieren, suchen, JSONPath-Abfragen, Deep Diff, Konvertieren (CSV/TSV/YAML/TypeScript) sowie Lizenzverwaltung. Der einzige JSON-MCP-Server, der große Dateien sicher verarbeitet. Verfügbar auf npm und mcp.so. Siehe AGENT_FIRST.md für die vollständige Begründung.

Related MCP server: mcp-json-tools

Funktionen

Kostenlos (für immer)

  • ✅ Automatische Erkennung & Formatierung von JSON/JSON-LD/JSON:API/NDJSON

  • ✅ Einklappbare Baumansicht mit Einzugslinien

  • ✅ Syntaxhervorhebung (Zeichenketten, Zahlen, Booleans, null)

  • ✅ 10 Themes (Dark, Light, Sepia, Monokai, Dracula, Nord, One Dark, Solarized Light, GitHub, High Contrast)

  • ✅ Theme-Umschaltung nach Systemeinstellung

  • ✅ Klicken zum Kopieren von Werten, Rechtsklick für JSONPath

  • ✅ Automatisch erkannte Links (klickbar) und Bildvorschauen (Hover)

  • ✅ Zeilennummern in der Rohansicht

  • ✅ Statistikleiste (Knotenanzahl, Tiefe, Dateigröße, Parse-Zeit)

  • ✅ Tastaturkürzel ([ einklappen, ] aufklappen, D Theme, R Rohansicht, Enter Suchnavigation)

  • ✅ Eigenständiger Viewer (JSON einfügen, Drag-and-Drop, Dateiladen)

  • ✅ URL-Ausschlussliste (Regex-Muster)

  • ✅ 100% lokale Verarbeitung – keine Netzwerkanfragen

Pro ($2.99/Monat oder $19.99/Jahr)

  • 💰 Virtuelles Scrollen für große Dateien (100MB+ ohne Einfrieren)

  • 💰 Erweiterte Suche (Regex, Trefferhervorhebung, Ergebnisnavigation)

  • 💰 Automatische JWT-Dekodierung (Header + Payload inline, Ablaufdatumserkennung)

  • 💰 Export in mehrere Formate (CSV, TSV, YAML, TypeScript-Typen mit rekursiver Inferenz)

  • 💰 30 Premium-Themes (Catppuccin, Tokyo Night, Gruvbox, Nord, Dracula, Monokai…)

  • 💰 Benutzerdefinierte Tastaturkürzel (6 konfigurierbare Tastenkombinationen)

Installation

Chrome Web Store

ClearJSON Free installieren

Edge Add-ons

ClearJSON für Edge herunterladen

Unverpackt laden (Entwicklung)

  1. Klonen Sie dieses Repository

  2. Gehen Sie zu chrome://extensions/

  3. Aktivieren Sie den „Entwicklermodus“

  4. Klicken Sie auf „Entpackte Erweiterung laden“ und wählen Sie den Projektordner

Projektstruktur

clearjson/
├── manifest.json              # Chrome Extension manifest (MV3)
├── server/                    # License server (Cloudflare Worker + D1)
│   ├── src/index.js           # API: verify/generate/webhook/admin
│   ├── schema.sql             # D1 database schema
│   └── wrangler.toml          # Worker config
├── clearjson-mcp/             # MCP server (npm: clearjson-mcp)
│   ├── package.json
│   ├── src/
│   │   ├── index.js           # MCP entry point (stdio transport)
│   │   ├── core/              # Core logic (parser, exporter, license)
│   │   └── tools/             # 7 JSON tools + 3 license tools
│   ├── tests/                 # 49 MCP unit tests
│   └── README.md
├── src/
│   ├── content/
│   │   ├── content.js         # Content script (JSON detection + viewer injection)
│   │   └── content.css        # Base styles + CSS variable theming
│   ├── viewer/
│   │   ├── viewer.html        # Standalone viewer page
│   │   └── viewer.js          # Viewer logic
│   ├── popup/
│   │   ├── popup.html         # Extension toolbar popup
│   │   ├── popup.js
│   │   └── popup.css
│   └── utils/
│       ├── parser.js          # JSON detection + parsing
│       ├── tokenizer.js       # Syntax highlighting tokenizer
│       ├── themes.js          # 30 theme definitions
│       ├── license.js         # Pro license system
│       ├── export.js          # CSV/TSV/YAML/TypeScript export
│       ├── stream-parser.js   # Web Worker streaming parser
│       ├── virtual-tree.js    # Virtual scrolling tree view
│       └── tree.js            # Standard tree view renderer
├── tests/                     # 136 unit tests (Node built-in runner)
│   ├── helpers/setup.js
│   ├── test-parser.js
│   ├── test-tokenizer.js
│   ├── test-jwt.js
│   ├── test-license.js
│   └── test-export.js
├── test-data/                 # Test data + automation scripts
│   ├── complex-api-response.json
│   ├── jwt-test.json
│   ├── users-array.json
│   ├── large-array.json       # 2.2 MB for Pro gate testing
│   ├── server.js              # Local test server (port 8765)
│   ├── run-checklist.js       # 130-item static analysis
│   ├── browser-test.js        # 21-item browser automation
│   └── TEST-CHECKLIST.md      # 43-item manual checklist
├── icons/
│   ├── icon.svg
│   ├── icon16.png
│   ├── icon48.png
│   └── icon128.png
└── README.md

Entwicklung

# For development, load the extension unpacked:
# 1. chrome://extensions/ → Developer mode ON
# 2. Load unpacked → select the project root
# 3. Edit files and click refresh on the extension card

# Run unit tests (zero dependencies, Node 18+):
npm test                    # 136 tests (Chrome extension)
cd clearjson-mcp && npm test   # 49 tests (MCP server)

# Run static analysis checklist (130 checks):
node test-data/run-checklist.js

# Run browser automation tests (requires puppeteer):
node test-data/browser-test.js

# Start local test server (Pro auto-enabled on localhost:8765):
node test-data/server.js

Aktueller Status (v1.1.1 – live im CWS)

Alle Funktionen implementiert. Pro über Creem verfügbar ($2.99/Monat oder $19.99/Jahr). 136 Unit-Tests bestehen. MCP-Server v1.1.0 auf npm veröffentlicht.

Siehe STATUS.md für den vollständigen Projektstatus, Architekturentscheidungen und die Release-Checkliste.

Datenschutz

ClearJSON verarbeitet alles lokal. Wir versprechen:

  • ❌ Keine Daten werden irgendwohin gesendet

  • ❌ Keine Analysen oder Telemetrie

  • ❌ Kein Tracking

  • ❌ Keine Werbung

  • ❌ Keine Konten

  • ❌ Keine Skripte von Drittanbietern

Unsere Berechtigungen sind minimal:

  • storage – speichert Ihre Theme-Präferenz

  • activeTab – formatiert JSON im aktuellen Tab

  • Host-Berechtigungen – nur erforderlich, um den JSON-Inhaltstyp zu erkennen; auf Nicht-JSON-Seiten wird kein Seiteninhalt gelesen

Warum „ClearJSON“?

Nachdem der ursprüngliche JSON Formatter (2M+ Nutzer, 10 Jahre Open Source) verkauft wurde und begann, Werbung einzuschleusen und Nutzer zu verfolgen, brauchten Entwickler eine vertrauenswürdige Alternative. ClearJSON wurde entwickelt, um diese Alternative zu sein, mit einem nachhaltigen Pro-Modell, das Nutzer respektiert, anstatt sie auszubeuten.

Available Tools

10 tools
activate_licenseA

Activate a ClearJSON Pro license key (CLJ-XXXX-XXXX-XXXX). Unlocks query_json, diff_json, and convert_json tools. One license covers up to 3 devices. $29 lifetime at wayknow.tech/clearjson.html.

Inputs: key (required).

convert_jsonA

Convert JSON to another format: CSV, TSV, YAML, or TypeScript type definitions. CSV/TSV requires a top-level array of objects. YAML and TypeScript work on any structure.

Inputs: json (required), format (required), rootName.

deactivate_licenseA

Remove the Pro license from this machine. Frees up a device slot.

Inputs: no named parameters.

diff_jsonA

Deep compare two JSON strings and produce a structured diff report. Detects added keys, removed keys, changed values, and type changes. Returns a list of differences with their JSONPath locations and old/new values.

Inputs: json_a (required), json_b (required).

format_jsonA

Parse and pretty-print a JSON string with configurable indentation. Handles JSON of any size — the only MCP JSON tool that does not crash on 100MB+ files. Returns the formatted result along with stats (node count, depth, size, parse time).

Inputs: json (required), indent.

license_statusA

Check ClearJSON Pro license status — activation state, email, device count, offline/online.

Inputs: no named parameters.

minify_jsonA

Compress/minify a JSON string to its smallest valid form (no whitespace).

Inputs: json (required).

query_jsonA

Query a JSON structure using JSONPath syntax. Supports dot-notation ($.store.book[0].title), recursive descent ($..author), array slicing ($[0:5]), wildcards ($..*), and filter expressions ($..book[?(@.price < 10)]). Returns matched values with their paths.

Inputs: json (required), path (required).

search_jsonA

Search for keys, values, or paths inside a JSON structure. Returns matching nodes with their JSONPath locations. Supports key search (field name contains), value search (value string contains), and path search (JSONPath contains). Respects maxResults limit (default 50).

Inputs: json (required), query (required), mode, maxResults, +1 more.

validate_jsonA

Validate a JSON string. Returns whether it is valid, and if not, the exact error location (line and column). Also returns stats: node count, max depth, file size, parse time.

Inputs: json (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 10 tools

    Disambiguation5/5

    Each tool serves a distinct purpose: license management, JSONPath querying, diffing, conversion, formatting, minification, validation, and search. No overlap; even query and search are clearly differentiated.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern (e.g., activate_license, query_json, convert_json). The only slight deviation is license_status, but it still fits the pattern as a status check.

    Tool Count5/5

    10 tools is well-scoped for a JSON utility server. It covers core operations and license management without unnecessary bloat. Each tool earns its place.

    Completeness4/5

    The set covers validation, formatting, querying, searching, diffing, and conversion. Missing are JSON editing tools (add/remove/modify keys) and schema validation, but the stated purpose focuses on analysis and transformation.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      A
      quality
      D
      maintenance
      Swiss-army-knife utility MCP server for AI agents. 18 tools for JSON validation/formatting, base64 encode/decode, hash generation, UUID generation, URL parsing, regex testing, markdown↔HTML conversion, text stats, slug generation, datetime conversion, cron parsing, text diffing, CSV↔JSON conversion, and JWT decoding. Zero API Key required
      18
      5
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that provides tools for JSON validation, diffing, and transformation operations such as flattening and renaming. It also enables data format conversion between JSON, CSV, and YAML to streamline data processing for AI agents.
      37 npm
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Developer-focused MCP server for code analysis and local engineering workflows. Provides tools for JSON repair, encoding fixes, import organization, format conversion, diff inspection, and regex testing.
      23
      156 npm
      4
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      MCP server for reading, querying, and filtering local JSON files with extended JSONPath syntax, supporting sorting, aggregations, and complex conditions.
      52 npm
      2
      MIT