Skip to content

feat(json) Fast streaming JSON loader backend#3425

Merged
ibgreen-openai merged 3 commits into
masterfrom
ib/json-perf
May 12, 2026
Merged

feat(json) Fast streaming JSON loader backend#3425
ibgreen-openai merged 3 commits into
masterfrom
ib/json-perf

Conversation

@ibgreen-openai
Copy link
Copy Markdown
Collaborator

Goals

Add an opt-in faster streaming backend for JSONLoader while preserving the current default parser and atomic JSON.parse behavior.

Changes

  • Added json.backend: 'clarinet' | 'fast' to JSONLoaderOptions, defaulting to 'clarinet'.
  • Wired json.backend: 'fast' through JSONLoader.parseInBatches() to use the fast streaming parser backend.
  • Set _FastJSONLoader to use the same json.backend: 'fast' option path.
  • Updated streaming JSON tests to cover both default and fast backends through JSONLoader.
  • Added TSDoc for the new backend option and parser-backend helper paths.
  • Documented the fast backend in JSON module docs, JSONLoader API docs, and whats-new.

@ibgreen-openai ibgreen-openai marked this pull request as ready for review May 12, 2026 20:11
@ibgreen-openai ibgreen-openai merged commit 1f05941 into master May 12, 2026
10 checks passed
@ibgreen-openai ibgreen-openai deleted the ib/json-perf branch May 12, 2026 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant