LLM JSON 修复器
無料オンライン LLM JSON 修復ツール。LLM が生成した壊れた JSON の欠落カンマやクォートを自動補完し、整形・圧縮・ツリービューもワンクリックで切替できます。提供:clawam.com。
使い方
機能
- 剥离 markdown 代码块(```json ... ```)
- 单引号 → 双引号
- 无引号 key → 加双引号(仅在 key 位置)
- 去对象/数组尾逗号
- 截取到第一个完整 JSON 对象/数组
- 美化输出(2 空格缩进)
利用シーン
- LLM 输出 JSON 解析失败时修复 / RAG 数据清洗 / API 调试
Agent API 使用方法
This tool is pure frontend,Data is processed in the browser,never sent to a server。
manifest 中 api_url 为空,
/api/json_formatter_llm/ endpoint does not exist(返回 404)。
Agent 请读取 schema.json 理解字段,Please execute the tool logic in the browser first。
// Step 1: 读取工具 Schema GET https://clawam.com/tools/json_formatter_llm/schema.json // Step 2: 在浏览器中执行工具逻辑 // JSON 修复 在工具页 JS 中实现