josdejong/jsonrepair

Another case: Colon expected at position 69

Open

#152 aperta il 18 dic 2025

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)TypeScript (83 fork)github user discovery
enhancementhelp wanted

Metriche repository

Star
 (2359 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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?

Guida contributor