Benchmark tests 21 JSON repair parsers on truncated LLM output, most score zero
A public benchmark called MALFORMED-300 tested 21 JSON parsing libraries on their ability to recover truncated model output, covering 25 such cases across Python and Node.js runtimes. Only a handful of libraries handled truncation well, with Python's json-repair and jsonshim each recovering 23 of 25 cases, while 12 of the 21 libraries scored zero on truncation. The zero scores largely reflect intended scope, as several libraries are dialect parsers not designed for malformed output recovery. The benchmark corpus contains 300 labelled cases, 275 of which are considered recoverable, and a 30-case sample along with a scoring script are available under a public domain licence. Full leaderboard results are publicly accessible, while the complete 300-case corpus with detailed rationale is available under a paid developer licence.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in