Skip to content

Streamlined JSON: Symfony's JsonEncoder for Modern APIs

Avatar of Mathias Arlaud Mathias Arlaud

Serialization plays a vital role in any information system, especially within web applications, as it underpins the HTTP request/response cycle.

Symfony 7.3 introduces the JsonEncoder component, a powerful tool for encoding PHP data structures to JSON streams—and back again. Designed for efficiency and scalability, the JsonEncoder is perfect for handling large JSON payloads. Combined with StreamedResponse, it becomes an ideal solution for streaming data in modern APIs.

In this talk, we'll dive into how the JsonEncoder, along with the ObjectMapper component (currently in draft), redefines serialization in the Symfony ecosystem.

Delivered in English
Room:
Symfony Room

Monday, March 17, 2025 at 11:50 AM – 12:20 PM