Skip to content

docs(performance): document JSON streaming via JsonStreamer#2298

Merged
soyuka merged 1 commit into
api-platform:4.3from
soyuka:docs/json-streamer
Jun 12, 2026
Merged

docs(performance): document JSON streaming via JsonStreamer#2298
soyuka merged 1 commit into
api-platform:4.3from
soyuka:docs/json-streamer

Conversation

@soyuka

@soyuka soyuka commented Jun 12, 2026

Copy link
Copy Markdown
Member

Documents the JSON streaming feature available since API Platform 4.2 (introduced in api-platform/core#7225) but so far undocumented.

Adds a ## JSON Streaming section to core/performance.md covering:

  • What it does: uses the Symfony JsonStreamer component to stream responses via StreamedResponse instead of building the full serialized payload in memory.
  • Requirements: composer require symfony/json-streamer, Symfony 7.4+ (experimental component).
  • enable_json_streamer config (auto-enabled when the component is installed).
  • Opt-in per resource/operation via jsonStream: true.
  • Applies to the json and jsonld formats; falls back to the Serializer otherwise.
  • Note about typed properties being required.

Refs api-platform/core#7225

Available since 4.2 but undocumented. Covers symfony/json-streamer
install, enable_json_streamer config, and the jsonStream attribute on
resources/operations (json + jsonld formats).

Refs api-platform/core#7225
@soyuka soyuka merged commit 29371cd into api-platform:4.3 Jun 12, 2026
3 checks passed
@soyuka soyuka deleted the docs/json-streamer branch June 12, 2026 10:45
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