{"id":15497474,"url":"https://github.com/heapwolf/json","last_synced_at":"2025-06-26T07:32:06.436Z","repository":{"id":17505118,"uuid":"20292987","full_name":"heapwolf/json","owner":"heapwolf","description":"Better JSON handling for C++","archived":false,"fork":false,"pushed_at":"2014-09-22T22:32:15.000Z","size":812,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-18T14:49:15.435Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/heapwolf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-29T12:28:22.000Z","updated_at":"2017-02-13T18:15:12.000Z","dependencies_parsed_at":"2022-08-28T17:50:20.351Z","dependency_job_id":null,"html_url":"https://github.com/heapwolf/json","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/heapwolf/json","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Fjson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Fjson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Fjson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Fjson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heapwolf","download_url":"https://codeload.github.com/heapwolf/json/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Fjson/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262022449,"owners_count":23246311,"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":[],"created_at":"2024-10-02T08:38:20.842Z","updated_at":"2025-06-26T07:32:06.404Z","avatar_url":"https://github.com/heapwolf.png","language":"C","readme":"# SYNOPSIS\na tiny helper for using dropbox's json11 parser. because constructing json in C++ is ugly.\n\n# EXAMPLE\n\n```cc\n#include \u003ciostream\u003e\n#include \"json/json.h\"\n\nusing namespace std;\nusing namespace JSON;\n\nint main() {\n\n  auto foo = JSON({\n    \"hello\": \"world\",\n    \"data\": [0, null, [\"hello\", \"goodbye\"]], // awesome \n    \"quote\": {\n      \"O'Connor\": \"everything that rises must converge\"\n    }\n  });\n\n  cout \u003c\u003c foo[\"quote\"][\"O'Connor\"].string_value() \u003c\u003c endl;\n}\n```\n\nOr just pass a string in, use try catch if your involved in some risky business.\n```\nauto foo = JSON(my_json_string);\ncout \u003c\u003c foo \u003c\u003c endl;\n```\n\n# INCLUDE\njust include the header file\n\n# COMPILE EXAMPLE\nJust link to the built binary (or modify and rebuild yourself).\n\n```bash\ncd example\ng++ -O0 -std=c++1y ./example/literal.cc ./deps/json11/json11.cpp -o example\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheapwolf%2Fjson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheapwolf%2Fjson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheapwolf%2Fjson/lists"}