llm_json_stream 0.1.0 copy "llm_json_stream: ^0.1.0" to clipboard
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
4
likes
0
points
208
downloads

Publisher

unverified uploader

Weekly Downloads

A streaming JSON parser optimized for LLM responses. Parse JSON reactively as it streams in, with path-based subscriptions and type-safe property access.

Repository (GitHub)
View/report issues

Topics

#json #streaming #parser #llm #reactive

License

unknown (license)

Dependencies

meta

More

Packages that depend on llm_json_stream