josdejong/jsonrepair

Failing when parsing double quotes inside a string which are followed by a Comma

Ouverte

#129 ouverte le 22 juin 2024

 (3 commentaires) (3 réactions) (0 personne assignée)TypeScript (88 forks)github user discovery
enhancementhelp wanted

Métriques du dépôt

Stars
 (2 397 étoiles)
Métriques de merge PR
 (Merge moyen 26j 22h) (2 PRs mergées en 30 j)

Description

I discovered an output made by Claude 3 API, that can't get repaired by this tool:

{
  "id": "251115",
  "category": "Politics",
  "reason": "The headline discusses a city's policy to become an "Airbnb-free zone", which is a political decision."
}

It won't fix the double quotes inside the string maybe due to the comma following after the second double quote in an "Airbnb-free zone", which

Guide contributeur