{"id":17549197,"url":"https://github.com/yhirose/cpp-jsonlib","last_synced_at":"2025-04-24T00:49:39.742Z","repository":{"id":138075739,"uuid":"417958610","full_name":"yhirose/cpp-jsonlib","owner":"yhirose","description":"A C++17 single-file header-only library to wrap RapidJSON SAX interface","archived":false,"fork":false,"pushed_at":"2021-10-17T01:43:51.000Z","size":4,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-24T00:49:33.813Z","etag":null,"topics":["cpp17","json","sax-parser"],"latest_commit_sha":null,"homepage":"","language":"C++","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/yhirose.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-16T22:00:27.000Z","updated_at":"2024-07-12T10:22:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"ff89112a-f0f4-413b-b03e-c043bfd51d4e","html_url":"https://github.com/yhirose/cpp-jsonlib","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yhirose%2Fcpp-jsonlib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yhirose%2Fcpp-jsonlib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yhirose%2Fcpp-jsonlib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yhirose%2Fcpp-jsonlib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yhirose","download_url":"https://codeload.github.com/yhirose/cpp-jsonlib/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250540956,"owners_count":21447426,"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":["cpp17","json","sax-parser"],"created_at":"2024-10-21T02:50:15.184Z","updated_at":"2025-04-24T00:49:39.733Z","avatar_url":"https://github.com/yhirose.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cpp-jsonlib\n\nA C++17 single-file header-only library for [RapidJSON SAX interface](https://rapidjson.org/md_doc_sax.html)\n\n```cpp\n#include \u003ciostream\u003e\n#include \"jsonlib.h\"\n\nint main(void) {\n  std::string json;\n  while (std::getline(std::cin, json)) {\n    std::string key;\n    jsonlib::parse(json, {\n      .Key = [\u0026](auto str, auto len) {\n        key.assign(str, len);\n      },\n      .String = [\u0026](auto str, auto len) {\n        std::cout \u003c\u003c key \u003c\u003c \": \" \u003c\u003c std::string(str, len) \u003c\u003c std::endl;\n      }\n    });\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyhirose%2Fcpp-jsonlib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyhirose%2Fcpp-jsonlib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyhirose%2Fcpp-jsonlib/lists"}