josdejong/jsonrepair

Another case: Colon expected at position 69

Open

#152 创建于 2025年12月18日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)TypeScript (83 fork)github user discovery
enhancementhelp wanted

仓库指标

Star
 (2,359 star)
PR 合并指标
 (PR 指标待抓取)

描述

Why, or why DeepSeek is so stoopid...

import { jsonrepair } from "jsonrepair";
const json = `{"body": "@root continuing the review...", "suggested_diff_hunk: null, "approve_pr: false}`;
const repairedJson = jsonrepair(json);
JSONRepairError: Colon expected at position 69

If I render the exact position, it'd be:

{"body": "@root continuing the review...", "suggested_diff_hunk: null, "approve_pr: false}
                                                                     ^

Do you think this case can be handled?

贡献者指南