json-format

Reviewed at commit 39335b2

Validate and pretty-print JSON without touching a file.

Made by
Yash Thakker
What we checked

Adds a /json-format command that opens a pane where you paste JSON and get it validated and pretty-printed, with a button to copy the result to the clipboard. It reads no files, makes no network calls, runs no programs and stores nothing.

Review details

Static review of the source at the pinned commit; not run. Registers session.start (to register the json-format command), command.run (filtered to json-format) and ui.render for its own pane. Runtime calls: $.command.register, $.ui.open, $.ui.invalidate, $.ui.resolve, $.ui.copy (clipboard write of the formatted output when the user presses the button) and $.ui.toast. Input is limited to 9000 characters and parsed with JSON.parse; parse errors are shown in the pane. No file access, no network, no process execution. No npm dependencies.

What it uses
  • Reads your prompts: no
  • Sees tool calls: no
  • Blocks or changes tool calls: no
  • Reads or writes files: no
  • Runs programs on your machine: no
  • Calls the model (uses tokens): no
  • Sends data over the network: no
  • Stores data: no
  • Shows something on screen: yes
Hooked events
Screenshot of json-format
Made this mod? Add a badge to your README

modsforClaude badge for json-format

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/json-format.svg)](https://modsforclaude.com/mods/json-format/)

← All mods