Add streaming JSON module - #351
Open
Mendrejk wants to merge 13 commits into
Open
Conversation
Add the Java 25 json Maven module and its Jackson 3.1.5 LTS dependency so the integration participates in the reactor build.
Provide lazy NDJSON and top-level JSON-array parsing and rendering over Jox flows with Jackson readers and writers.
Exercise NDJSON and array parsing/rendering across chunk boundaries, errors, cancellation, generic types, and I/O integrations.
Document the json dependency, supported wire formats, Jackson configuration, and composition with Jox flows and I/O.
Keep null guards consistent across Class/TypeReference and reader/writer overloads. Co-authored-by: Cursor <cursoragent@cursor.com>
Express JSON delimiters through flow composition instead of mutable first-element state, without treating byte chunk boundaries as API behavior. Co-authored-by: Cursor <cursoragent@cursor.com>
Separate serialization, record validation, and byte framing into explicit flow transformations. Co-authored-by: Cursor <cursoragent@cursor.com>
Fail clearly when Jackson produces null instead of allowing later asynchronous stages to crash, and strengthen edge-case coverage for streaming behavior and failures. Co-authored-by: Cursor <cursoragent@cursor.com>
Separate test setup, execution, and assertions consistently so each JSON behavior is easier to scan and reason about. Co-authored-by: Cursor <cursoragent@cursor.com>
Keep Java requirements and the structured-concurrency comparison accurate without relying on a particular publication date. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #344
Summary
jsonMaven module for lazy, backpressured NDJSON and top-level JSON array parsing/rendering over JoxFlow/ByteFlow.Class,TypeReference,ObjectReader, andObjectWriteroverloads, plusJsonReadSettingsfor bounded NDJSON records.Notes
ByteFlow.runToInputStream. Bulk-read latency and read-ahead are inherited from flows and tracked separately.