sashazykov/json-repair-rb
A simple Ruby gem designed to repair broken JSON strings
When working with data from sources like Large Language Models (LLMs), you often encounter JSON text that isn't perfectly formatted. This tool takes a 'broken' JSON string, like one with missing quotes or misplaced commas, and fixes it into a valid JSON string. This is for Ruby developers who need to reliably process JSON output that might not strictly adhere to standards.
No commits in the last 6 months.
Use this if you are a Ruby developer and need to parse JSON data that frequently arrives with minor formatting errors, especially from AI model outputs.
Not ideal if you need to process strictly valid JSON or are working in a programming language other than Ruby.
Stars
10
Forks
5
Language
Ruby
License
—
Category
Last pushed
Dec 05, 2024
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/transformers/sashazykov/json-repair-rb"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
ludwig-ai/ludwig
Low-code framework for building custom LLMs, neural networks, and other AI models
withcatai/node-llama-cpp
Run AI models locally on your machine with node.js bindings for llama.cpp. Enforce a JSON schema...
mudler/LocalAI
:robot: The free, Open Source alternative to OpenAI, Claude and others. Self-hosted and...
zhudotexe/kani
kani (カニ) is a highly hackable microframework for tool-calling language models. (NLP-OSS @ EMNLP 2023)
SciSharp/LLamaSharp
A C#/.NET library to run LLM (🦙LLaMA/LLaVA) on your local device efficiently.