LLM_JSON
A Rust library to repair broken JSON strings, particularly useful for handling malformed JSON output from Large Language Models.
This is a porting of the Python library json_repair, written by Stefano Baccianella and published under the MIT license.
All credits go to the original author for the amazing work.
Programmatic Usage
Install llm_json
in your project:
Then use it to repair your broken JSON strings:
use ;
CLI Usage
Install llm_json
locally:
Then use it to repair your broken JSON strings and files:
# Repair JSON from stdin
|
# Repair a file
# Save to new file
# Fix file in-place