Framework-agnostic PHP package to load JSON of any size into Laravel lazy collections with minimal memory usage.
Lazy JSON is a framework-agnostic PHP package that loads JSON data of any size into Laravel lazy collections for memory-efficient processing. It solves the problem of handling large JSON files or API responses without exhausting system memory by parsing data lazily and recursively.
PHP developers working with large JSON datasets, API integrations, or data processing pipelines who need to minimize memory usage while maintaining performance.
Developers choose Lazy JSON for its seamless integration with Laravel lazy collections, support for diverse JSON sources, and efficient dot-notation extraction, eliminating memory constraints when processing massive JSON structures.
🐼 Framework-agnostic package to load JSON of any dimension and from any source into Laravel lazy collections recursively.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Uses Laravel lazy collections to parse JSON incrementally, handling arbitrarily large files with only a few KB of memory, as stated in the README for processing JSON of any dimension.
Supports a wide range of JSON sources including files, API endpoints, PSR-7 messages, and Laravel HTTP responses, making it adaptable for various data ingestion scenarios.
Allows extraction of specific sub-trees using dot-notation syntax (e.g., 'results.*.location.city'), enabling focused parsing without loading entire JSON structures.
Provides a macro for Laravel lazy collections, allowing seamless use of native collection methods like map, filter, and chunk in Laravel applications.
Heavily relies on Laravel's lazy collections, which can introduce compatibility issues or unnecessary bloat for non-Laravel PHP projects, despite being framework-agnostic.
For small or straightforward JSON data, the lazy parsing mechanism adds complexity and potential performance lag compared to standard PHP functions like json_decode.
Depends on the JSON Parser package under the hood, meaning any bugs, limitations, or breaking changes in that dependency directly affect Lazy JSON's functionality.