Repair malformed JSON files by normalizing them through Node.js evaluation. Use this to fix trailing commas, single quotes, unquoted keys, or other common syntax errors in JSON files (e.g. config files, manually edited data).
A utility to repair broken or "loose" JSON files (like those with trailing commas, single quotes, or unquoted keys) by parsing them as JavaScript objects and re-serializing as valid JSON.
CODEBLOCK0
{"a": 1,} -> INLINECODE1{'a': 'b'} -> INLINECODE3{key: "value"} -> INLINECODE5// (if parser supports it, standard Node eval may strip them if they are line comments outside of strings).0xFF -> INLINECODE9.bak file before overwriting (unless --no-backup is used, but default is safe).vm.runInNewContext to parse, ensuring no access to global scope or process. It is safer than eval().该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 json-repair-kit-1776420061 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 json-repair-kit-1776420061 技能
skillhub install json-repair-kit-1776420061
文件大小: 3.97 KB | 发布时间: 2026-4-17 20:10