{"id":16160122,"url":"https://github.com/krish120003/jsonparser","last_synced_at":"2025-10-14T10:39:07.727Z","repository":{"id":238253239,"uuid":"796189177","full_name":"Krish120003/jsonparser","owner":"Krish120003","description":"JSON parser creating Rust objects in-memory.","archived":false,"fork":false,"pushed_at":"2024-06-16T16:51:47.000Z","size":656,"stargazers_count":22,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-07T02:44:15.711Z","etag":null,"topics":["json","parser","parsers","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/Krish120003.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-05T07:51:37.000Z","updated_at":"2025-03-01T20:37:21.000Z","dependencies_parsed_at":"2024-05-13T00:21:49.228Z","dependency_job_id":"743e3ec9-8104-4527-af27-d29a4e2ceaee","html_url":"https://github.com/Krish120003/jsonparser","commit_stats":null,"previous_names":["krish120003/jsonparser"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Krish120003/jsonparser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krish120003%2Fjsonparser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krish120003%2Fjsonparser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krish120003%2Fjsonparser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krish120003%2Fjsonparser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Krish120003","download_url":"https://codeload.github.com/Krish120003/jsonparser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krish120003%2Fjsonparser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018783,"owners_count":26086452,"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","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["json","parser","parsers","rust"],"created_at":"2024-10-10T02:00:49.809Z","updated_at":"2025-10-14T10:39:07.699Z","avatar_url":"https://github.com/Krish120003.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jsonparser\n\nA hand written JSON parser in Rust in under 500 lines of code.\n\nThis parser reads JSON source from a string and construct a custom JSONValue object in memory.\n\n```rust\nenum JSONValue {\n    Null,\n    True,\n    False,\n    Number(f64),\n    String(String),\n    Array(Vec\u003cJSONValue\u003e),\n    Object(HashMap\u003cString, JSONValue\u003e),\n}\n```\n\nAll the source code is in the `src/main.rs` file, including:\n\n- Enum definitions for JSONValue and JSONParseError\n- The Parser\n- Unit tests\n- Quick benchmarks\n\nThere is an accompanying blog post for this on my website at [https://krishkrish.com/blog/json-parser-in-rust](https://krishkrish.com/blog/json-parser-in-rust)\n\n## Usage\n\nTo use this parser, you can call the `parse` function with a JSON source string.\n\n```rust\nlet json = r#\"\n{\n    \"name\": \"John Doe\",\n    \"age\": 30,\n    \"is_student\": false,\n    \"marks\": [90, 80, 85],\n    \"address\": {\n        \"street\": \"123 Main St\",\n        \"city\": \"New York\"\n    }\n}\n\n\"#;\n\nlet json_value = jsonparser::parse(json).unwrap();\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Acknowledgments\n\n- [JSON.org](https://www.json.org/json-en.html)\n- [serde-rs's json-benchmark](https://github.com/serde-rs/json-benchmark/tree/master/data)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrish120003%2Fjsonparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrish120003%2Fjsonparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrish120003%2Fjsonparser/lists"}