josdejong/jsonrepair

Another case: Colon expected at position 69

Aberta

#152 aberto em 18 de dez. de 2025

 (1 comentário) (0 reação) (0 responsável)TypeScript (88 forks)github user discovery
enhancementhelp wanted

Métricas do repositório

Stars
 (2.397 estrelas)
Métricas de merge de PR
 (Mesclagem média 26d 22h) (2 fundiu PRs em 30d)

Description

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?

Guia do colaborador