{"id":40512598,"url":"https://github.com/default-writer/c-json-parser","last_synced_at":"2026-01-20T20:30:50.984Z","repository":{"id":323136016,"uuid":"1081519439","full_name":"default-writer/c-json-parser","owner":"default-writer","description":"Simple json parser","archived":false,"fork":false,"pushed_at":"2025-12-26T00:09:58.000Z","size":3934,"stargazers_count":23,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-26T16:57:29.517Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/default-writer.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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-22T22:43:22.000Z","updated_at":"2025-12-25T18:36:21.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/default-writer/c-json-parser","commit_stats":null,"previous_names":["default-writer/c-json-parser"],"tags_count":0,"template":false,"template_full_name":"default-writer/c-clang-ninja-template","purl":"pkg:github/default-writer/c-json-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/default-writer%2Fc-json-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/default-writer%2Fc-json-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/default-writer%2Fc-json-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/default-writer%2Fc-json-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/default-writer","download_url":"https://codeload.github.com/default-writer/c-json-parser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/default-writer%2Fc-json-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28612839,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T18:56:40.769Z","status":"ssl_error","status_checked_at":"2026-01-20T18:54:26.653Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-01-20T20:30:50.922Z","updated_at":"2026-01-20T20:30:50.978Z","avatar_url":"https://github.com/default-writer.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [C JSON parser](https://github.com/default-writer/c-json-parser)\n\n- lightning-fast implementation of a JSON parser\n- added JSON validation\n- easy to read, learn and implement\n- c17 ready / c89 compatible\n\n## performance\n\n- significantly faster compared to [json-c](https://github.com/json-c/json-c)\n- a little bit faster than [simdjson](https://github.com/simdjson/simdjson)\n- supports [RFC 8259](https://datatracker.ietf.org/doc/html/rfc8259)\n- supports SSE2\n\n## [data](data/test.json)\n\n- 2.8 nanoseconds (per run)\n- 3846 bytes in a test data\n\n## badges\n\n[![CodeQL](https://github.com/default-writer/c-json-parser/actions/workflows/codeql.yml/badge.svg?branch=main)](https://github.com/default-writer/c-json-parser/actions/workflows/codeql.yml)\n\n## Speed comparison\n\n| Metric                                  |            simdjson |    c-json-parser(*) |   c-json-parser(**) |       c-json-parser |              json-c |\n| :---------------------------------------| ------------------: | ------------------: | ------------------: | ------------------: | ------------------: |\n| execution time (100K run)               |        00:00:00.393 |        00:00:00.244 |        00:00:00.275 |        00:00:01.182 |        00:00:04.093 |\n| execution time (1M runs)                |        00:00:03.959 |        00:00:02.446 |        00:00:02.751 |        00:00:11.838 |        00:00:42.702 |\n| allocation calls (100K runs)            |                   - |                   0 |                   0 |          20,000,000 |          52,900,000 |\n| allocation calls (1M runs)              |                   - |                   0 |                   0 |         200,000,000 |         529,000,000 |\n| total heap usage (100K runs)            |                   - |                   0 |                   0 |         806,400,000 |       4,179,600,000 |\n| total heap usage (1M runs)              |                   - |                   0 |                   0 |       8,064,000,000 |      41,796,000,000 |\n\n(*) - 0-alloc version without string escape symbols validation\n(**) - 0-alloc version with string escape symbols validation\n\n## docs\n\n- [basics](docs/data-structures.md)\n\n## screenshots\n\n![logo_c_json_parser](images/image.png)\n\n## tools\n\nNinja + Clang\n\n## prerequisites\n\n```bash\nsudo apt install -y git cmake clang clang gcc g++ lld\n```\n\n## build\n\n```bash\n./build-c-json-parser.sh\n```\n\n## profiling\n\n```bash\n./gprof.sh\n```\n\n## test\n\n```bash\n./test.sh\n```\n\n## runtime / performance\n\n```bash\n./perf.sh\n./perf.sh perf-c-json-parser\n./perf.sh perf-c-json-parser-long\n./perf.sh perf-c-json-parser-no-string-validation\n./perf.sh perf-c-json-parser-no-string-validation-long\n```\n\n## installation [simdjson](https://github.com/simdjson/simdjson) / [json-c](https://github.com/json-c/json-c)\n\n```bash\n./bin/install_json_c.sh\n./bin/install_simdjson.sh\n```\n\n## build [simdjson](https://github.com/simdjson/simdjson) / [json-c](https://github.com/json-c/json-c)\n\n```bash\n./build-json-c.sh\n./build-simdjson.sh \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefault-writer%2Fc-json-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdefault-writer%2Fc-json-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefault-writer%2Fc-json-parser/lists"}