Following this article Dynamic Auto Filtering API Crud Generator for Laravel and Lumen, macropay-solutions came with another feature-fix. Instead of s

Streamed JSON Lines using laravel-crud-wizard-free

submited by
Style Pass
2025-08-08 08:30:05

Following this article Dynamic Auto Filtering API Crud Generator for Laravel and Lumen, macropay-solutions came with another feature-fix.

Instead of streaming a single JSON (which it seems does not realy stream with the StreamedJsonResponse class from Symfony/Laravel), they proposed Streamed JSON Lines (https://jsonlines.org).

In browser, the following Javascript code could be used to parse the response and display each row as it arrives, thus not needing to wait for the whole JSON stream to finish:

A demo can be found here https://laravel-crud-wizard.com/laravel-9/laravel-lumen-crud-wizard#operations. Just select Streamed Json in the Pagination drop-down and submit.

Leave a Comment
Related Posts