{"id":17689230,"url":"https://github.com/m1guelpf/repair-json","last_synced_at":"2025-04-27T06:51:02.399Z","repository":{"id":217649006,"uuid":"744487577","full_name":"m1guelpf/repair-json","owner":"m1guelpf","description":"Repair incomplete JSON (e.g. from streaming APIs or AI models) so it can be parsed as it's received.","archived":false,"fork":false,"pushed_at":"2024-01-17T12:22:17.000Z","size":10,"stargazers_count":33,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-11T21:41:18.972Z","etag":null,"topics":["repair-json","rust","streaming-json"],"latest_commit_sha":null,"homepage":"https://docs.rs/repair_json","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/m1guelpf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2024-01-17T12:00:33.000Z","updated_at":"2025-02-18T13:09:25.000Z","dependencies_parsed_at":"2024-01-17T18:23:45.872Z","dependency_job_id":"8c449db8-45c1-44f2-a4a6-7dfb4fee4861","html_url":"https://github.com/m1guelpf/repair-json","commit_stats":null,"previous_names":["m1guelpf/repair-json"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m1guelpf%2Frepair-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m1guelpf%2Frepair-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m1guelpf%2Frepair-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m1guelpf%2Frepair-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m1guelpf","download_url":"https://codeload.github.com/m1guelpf/repair-json/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251099734,"owners_count":21536153,"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":["repair-json","rust","streaming-json"],"created_at":"2024-10-24T11:46:58.663Z","updated_at":"2025-04-27T06:51:02.370Z","avatar_url":"https://github.com/m1guelpf.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# repair_json\n\n\u003e Repair incomplete JSON (e.g. from streaming APIs or AI models) so it can be parsed as it's received.\n\n[![crates.io](https://img.shields.io/crates/v/repair-json.svg)](https://crates.io/crates/repair_json)\n[![download count badge](https://img.shields.io/crates/d/repair-json.svg)](https://crates.io/crates/repair_json)\n[![docs.rs](https://img.shields.io/badge/docs-latest-blue.svg)](https://docs.rs/repair_json)\n\n## Usage\n\n```rust\nlet json_stream = json_source::stream().await?;\n\nwhile let Some(incomplete_json) = json_stream.next().await {\n    let valid_json = repair_json::repair(incomplete_json);\n    let parsed_struct = serde_json::from_str(valid_json).unwrap();\n\n    // ...\n}\n```\n\nRefer to the [documentation on docs.rs](https://docs.rs/repair_json) for detailed usage instructions.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm1guelpf%2Frepair-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm1guelpf%2Frepair-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm1guelpf%2Frepair-json/lists"}