UNPKG

llm-json-fix

Version:

Fix malformed JSON outputs from Large Language Models (LLMs)

35 lines (26 loc) 902 B
# Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [1.0.0] - 2024-03-23 ### Added - Initial public release - Core functionality for fixing malformed JSON from LLMs - Support for various common JSON errors: - Missing quotes around property names - Single quotes instead of double quotes - Trailing commas - Python-style constants (True/False/None) - Missing closing brackets - Equals instead of colons - Code block markers and explanatory text - Ellipses in arrays - Comments - Nested JSON strings - Streaming API for handling large files - Command-line interface - Detailed documentation and examples ### Changed - N/A (initial release) ### Fixed - N/A (initial release)