llm_json_stream 0.1.0
llm_json_stream: ^0.1.0 copied to clipboard
A streaming JSON parser optimized for LLM responses. Parse JSON reactively as it streams in, with path-based subscriptions and type-safe property access.
0.1.0 #
- Initial release π
- Streaming JSON parser optimized for LLM responses
- Path-based property subscriptions with chainable API
- Support for all JSON types: String, Number, Boolean, Null, Map, List
- Array index access and dynamic element callbacks
- Handles leading whitespace before root JSON elements
- Comprehensive error handling and edge case coverage
- Total: 160 tests passing β
Features #
- Reactive property access: Subscribe to JSON properties as they complete in the stream
- Nested structures: Full support for deeply nested objects and arrays
- Chainable API: Access nested properties with fluent syntax
- Type safety: Typed property streams for all JSON types
- Memory safe: Proper stream lifecycle management and closed stream guards
Fixed Issues #
- β Root maps completing properly
- β Nested maps completing correctly
- β List chainable property access working
- β "Cannot add event after closing" errors resolved
- β Proper delimiter handling between primitives and containers
- β Child delegate completion detection