Shim.so
JSON repair API for broken LLM outputs. Sub-50ms streaming.
Shim.so – JSON repair API for broken LLM outputs with sub-50ms streaming
Summary: Shim.so intercepts and repairs malformed JSON outputs from large language models in under 50 milliseconds, supporting real-time streaming and zero data persistence. It fixes common issues like truncated objects, markdown wrappers, trailing commas, unquoted keys, NaN values, and validates schemas to prevent app crashes.
What it does
Shim.so receives LLM output, repairs invalid JSON including incomplete objects and formatting errors, and returns valid JSON with sub-50ms latency. It supports streaming by processing chunks as they arrive without waiting for the end of the stream.
Who it's for
Developers integrating AI agents in production environments who face frequent JSON parsing failures from LLM outputs.
Why it matters
It eliminates app crashes caused by malformed JSON from LLMs, reducing the need for extensive prompt rewriting or complex error handling.