{"repo":"halaxa/json-machine","free":true,"listed":false,"github":"https://github.com/halaxa/json-machine","clone":"git clone https://github.com/halaxa/json-machine.git","description":"Efficient, easy-to-use, and fast PHP JSON stream parser","language":"PHP","stars":1324,"topics":["php","stream-processing","json-parser","json-iterator","json-stream","parsing"],"license":"Apache-2.0","category":"data-pipelines","readme_excerpt":"Very easy to use and memory efficient drop-in replacement for inefficient iteration of big JSON files or streams for PHP =7.2. See TL;DR. No dependencies in production except optional ext-json . README in sync with the code --- NEW in version 1.2.0 - Recursive iteration --- TL;DR Introduction Parsing JSON documents + Parsing a document + Parsing a subtree + Parsing nested values in arrays + Parsing a single scalar value + Parsing multiple subtrees + Recursive iteration + What is JSON Pointer anyway? Options Parsing streaming responses from a JSON API + GuzzleHttp + Symfony HttpClient Tracking the progress Decoders + Available decoders Error handling + Catching malformed items Parser efficiency + Streams / files + In-memory JSON strings Troubleshooting + \"I'm still getting Allowed memory size ... exhausted\" + \"That didn't help\" + \"I am still out of luck\" Installation Development + Non containerized + Containerized Support License --- TL;DR Random access like $users[42] is not yet possible. Use above-mentioned foreach and find the item or use JSON Pointer. Counting the items is possible via iterator count($users) . Remember it will still have to internally iterate the whole thing to get the count and thus will take about the same time as iterating it and counting in a loop. Requires ext-json if used out of the box but doesn't if a custom decoder is used. See Decoders. Follow CHANGELOG. Introduction JSON Machine is an efficient, easy-to-use and fast JSON stream/pull/incremental/","default_branch":null,"files":null,"tree":[],"storefront":"/r/halaxa","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/halaxa/json-machine/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}