Seamlessly repair incomplete or broken JSON data streams from LLMs in real-time, delivering a perfectly valid structure.
```json id": 123, "tags": ["c", "cpp"
{"id": 123, "tags": ["c", "cpp"]}
Automatically removes markdown noise, fixes missing brackets/braces, and prepends missing starts.
[{"name": "Alice", "age": 20}, {"name": "Bob"
[{"name": "Alice", "age": 20}, {"name": "Bob", "age": 0}]
Infers missing keys from previous elements and injects context-aware default values (e.g., `0` for age).
* Divided into 4 blocks to visualize progressive repair. (For this demo, it makes 4 sequential API calls using cumulative data. In production, this runs over a single streaming connection.)