josdejong/jsonrepair

Another case: Colon expected at position 69

オープン

#152 opened on 2025/12/18

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)TypeScript (88 件のフォーク)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (2,397 個のスター)
PR merge metrics
 (平均マージ 26d 22h) (30d で 2 merged PRs)

説明

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?

コントリビューターガイド