json-sanity
Deterministic JSON repair for LLM agents.
От сообщества: Добавлен пользователем или импортирован; проверьте владельца перед подключениемРаботаетНужен API-ключГлобальныйБесплатноТолько чтение
Что умеет
- Validate Json: Check whether a JSON string is valid. Returns parsed object on success.
- Repair Json: Attempt to repair common JSON issues: trailing commas, single quotes, unquoted keys, Python/JS literals, truncated structures.
- Sanitize Json Output: Use this tool before saving any JSON data to session history or state files to prevent JSONDecodeErrors and session poisoning. It removes prose preambles and repairs malformed co
Какие данные видит
Нужен ли аккаунт
Нужен API-ключ из настроек сервиса
Deterministic JSON repair for LLM agents. Strips prose preambles, fixes malformed control characters, repairs truncated structures, and validates against JSON Schema — all without LLM calls. Stops session poisoning before it kills your long-running agent.
Список инструментов сервера (4)
Технические названия из tools/list. Нужны только разработчикам.
| validate_json | Check whether a JSON string is valid. Returns parsed object on success. |
| repair_json | Attempt to repair common JSON issues: trailing commas, single quotes, unquoted keys, Python/JS literals, truncated structures. |
| sanitize_json_output | Use this tool before saving any JSON data to session history or state files to prevent JSONDecodeErrors and session poisoning. It removes prose preambles and repairs malformed control characters. |
| repair_string | Deterministic repair engine. Given a raw LLM output that should contain JSON, this tool: (1) strips markdown code fences (```json), (2) regex-strips prose preambles/suffixes, (3) escapes unescaped control characters inside string values, (4) validates with json.loads — falling back to structural repairs and partial-recovery bracket closing when needed, and (5) optionally validates the repaired JSON against a JSON schema. |