sammwyy/graceful-json

A graceful JSON parser and serializer with fallback handling.

25
/ 100
Experimental

When working with Large Language Models (LLMs), you often get responses that include extra conversational text, markdown formatting, or slightly malformed JSON. This tool helps you reliably extract valid JSON data from these messy text inputs. It takes any text that might contain JSON and outputs clean, structured JSON objects. This is useful for developers building applications that process and rely on data from LLMs.

No commits in the last 6 months. Available on npm.

Use this if you are a developer integrating LLMs into your applications and need to reliably extract structured JSON data from their varied text outputs.

Not ideal if you are dealing with perfectly formed JSON data or require a simple JSON.parse() equivalent without error handling and repair capabilities.

LLM integration AI response processing data extraction API development backend engineering
No License Stale 6m No Dependents
Maintenance 2 / 25
Adoption 7 / 25
Maturity 16 / 25
Community 0 / 25

How are scores calculated?

Stars

25

Forks

Language

TypeScript

License

Last pushed

Jun 03, 2025

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/sammwyy/graceful-json"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.