{"id":16101742,"url":"https://github.com/kelunik/streaming-json","last_synced_at":"2025-03-18T08:30:35.256Z","repository":{"id":57005474,"uuid":"92021748","full_name":"kelunik/streaming-json","owner":"kelunik","description":"A streaming JSON parser based on Amp.","archived":false,"fork":false,"pushed_at":"2017-07-10T11:31:59.000Z","size":10,"stargazers_count":18,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T18:12:23.183Z","etag":null,"topics":["amphp","async","json","php","streaming"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kelunik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-22T07:00:44.000Z","updated_at":"2025-03-02T14:29:15.000Z","dependencies_parsed_at":"2022-08-21T13:50:48.171Z","dependency_job_id":null,"html_url":"https://github.com/kelunik/streaming-json","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kelunik%2Fstreaming-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kelunik%2Fstreaming-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kelunik%2Fstreaming-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kelunik%2Fstreaming-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kelunik","download_url":"https://codeload.github.com/kelunik/streaming-json/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244183948,"owners_count":20412129,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["amphp","async","json","php","streaming"],"created_at":"2024-10-09T18:50:54.705Z","updated_at":"2025-03-18T08:30:34.844Z","avatar_url":"https://github.com/kelunik.png","language":"PHP","funding_links":[],"categories":["Streams"],"sub_categories":["Tunnel"],"readme":"# streaming-json\n\nA streaming JSON parser for Amp.\n\n## Installation\n\n```\ncomposer require kelunik/streaming-json\n```\n\n## Usage\n\n```php\n$parser = new StreamingJsonParser($inputStream);\n\nwhile (yield $parser-\u003eadvance()) {\n    $parsedItem = $parser-\u003egetCurrent();\n}\n```\n\nOptions can be passed to the constructor just like for `json_decode`. The parser will consume the passed input stream and is itself an `Amp\\Iterator` that allows consumption of all parsed items. Any malformed message will fail the parser. If the input stream ends, the parser will try to parse the last item and will complete the iterator successfully or fail it, depending on whether the last item was malformed or not.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkelunik%2Fstreaming-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkelunik%2Fstreaming-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkelunik%2Fstreaming-json/lists"}