PulseAugur
EN
LIVE 01:27:40

json-repair excels at extracting LLM-wrapped JSON, outperforming jsonshim

A new benchmark, MALFORMED-300, evaluates how well parsers can extract JSON from malformed LLM outputs, particularly when JSON is wrapped in other formats like XML, HTML, or SQL. The json-repair tool achieved a perfect score of 25/25 in this specific category, outperforming jsonshim (17/25) and standard libraries (0/25). However, across the entire 300-case benchmark, jsonshim still leads with an overall score of 94.0%, while json-repair follows at 88.3%. AI

IMPACT Improves LLM output parsing reliability, potentially reducing errors in applications that consume LLM-generated structured data.

RANK_REASON The item details the performance of a specific tool, json-repair, on a benchmark for parsing malformed LLM outputs.

Read on dev.to — LLM tag →

AI-generated summary · Google Gemini · from 1 sources. How we write summaries →

json-repair excels at extracting LLM-wrapped JSON, outperforming jsonshim

COVERAGE [1]

  1. dev.to — LLM tag TIER_1 English(EN) · Toolkit Labs ·

    LLM JSON wrapped in XML tags: json-repair scores 25/25, jsonshim 17/25

    <p>When an LLM wraps JSON inside XML tags, markdown fences, or SQL fragments, <strong>json-repair</strong> scores <strong>25/25</strong> on the wrapper-tagged cases in <a href="https://toolkitlabs.org/malformed300/?s=devto-wrappers240" rel="noopener noreferrer">MALFORMED-300</a>.…