jsonrepairjson
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "jsonrepairjson" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-f1c97d8e81077910769f1b956104850b67859318fbede6da5c79f99727b7dcea. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/repair-malformed-json-before-parsing-downstream-automations-jsonrepair before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Use this tool to repair and normalize nearly valid but parser-breaking JSON-like output (for example trailing commas, missing quotes, or concatenated fragments) so payloads are cleaned before validation or routing. The agent's role is to normalize payloads, not replace proper schema design.
Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Software, accounts and paid services
- Node.js or CLI, JSON-like input data
- Testing
- Not tested
Browse files
Frontmatter
name: "在使用 jsonrepair 解析下游自动化之前修复格式错误的 JSON"
slug: "repair-malformed-json-before-parsing-downstream-automations-jsonrepair"
version: "1.0.0"
displayName: "在使用 jsonrepair 解析下游自动化之前修复格式错误的 JSON"
summary: "当代理收到类似JSON的输出但几乎有效但仍会破坏解析器时,例如尾随逗号、缺少引号或连接的片段,请使用jsonrepair。代理的角色是在验证或路由之前规范化负载,而不是替换真正的模式设计。"
license: "MIT"
description: "当代理收到类似JSON的输出但几乎有效但仍会破坏解析器时,例如尾随逗号、缺少引号或连接的片段,请使用jsonrepair。代理的角色是在验证或路由之前规范化负载,而不是替换真正的模式设计。"
github_stars: 2297
verification: "security_reviewed"
source: "https://github.com/1991513ccie-png/skills"
author: "1991513ccie-png"
category: "Developer Tools"
framework: "Multi-Framework"
tool_ecosystem:
github_repo: "1991513ccie-png/skills"
github_stars: 2297
npm_package: "jsonrepair"
npm_weekly_downloads: 7314614在使用 jsonrepair 解析下游自动化之前修复格式错误的 JSON
Use jsonrepair when an agent receives JSON-like output that is almost valid but still breaks parsers, such as trailing commas, missing quotes, or concatenated fragments. The agent’s role is to normalize the payload before validation or routing, not to replace real schema design.
Prerequisites
Node.js or CLI, JSON-like input data
Installation
Use the upstream install or setup path that matches your environment:
- $ npm install jsonrepair
- $ npm install -g jsonrepair
- npm install | Install the dependencies once
- npm run build | Build the library (ESM, CommonJs, and UMD output in the folder lib)
Requirements and caveats from upstream:
- Replace Python constants None, True, and False with null, true, and false
- Use the streaming API in Node.js:
- import { createReadStream, createWriteStream } from 'node:fs'
Basic usage or getting-started notes:
-
Turn newline delimited JSON into a valid JSON array, for example:
-
Note that in the lib folder, there are builds for ESM, UMD, and CommonJs.
-
Use
-
Extracted from upstream docs: https://raw.githubusercontent.com/josdejong/jsonrepair/HEAD/README.md
Documentation
Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决实际开发中常见的 JSON 格式错误问题,具有明确的实用价值
- 适用于多种场景,如自动化任务、数据规范化等
Highlights
- 触发词精准完整,覆盖多种变体,边界清晰
Areas to improve
-
缺少明确的 Phase/步骤划分和端到端示例 Reported severity: Minor
文档结构基本完整,但缺少明确的步骤划分和端到端示例,影响用户理解执行流程。
Recommendation: 建议添加明确的 Phase/步骤划分和端到端示例,提升文档的可读性和易用性。
Highlights
- frontmatter 完整,包含必要的元数据信息
Areas to improve
-
未覆盖主要异常(如输入完全无效的情况) Reported severity: Minor
文档未覆盖输入完全无效的情况,可能导致执行失败。
Recommendation: 建议添加对输入完全无效情况的处理说明,提升执行可靠性。
Highlights
- 工具来源明确,参数正确,不可逆操作有确认机制
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 33, 34, 35
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- github.com
- raw.githubusercontent.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Node.js or CLI, JSON-like input data
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.