josdejong/jsonrepair

Another case: Colon expected at position 69

Open

#152 geöffnet am 18. Dez. 2025

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (83 Forks)github user discovery
enhancementhelp wanted

Repository-Metriken

Stars
 (2.359 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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?

Contributor Guide