{"id":13417880,"url":"https://github.com/dropbox/json11","last_synced_at":"2025-09-28T23:31:55.971Z","repository":{"id":10478355,"uuid":"12655652","full_name":"dropbox/json11","owner":"dropbox","description":"A tiny JSON library for C++11.","archived":true,"fork":false,"pushed_at":"2020-03-25T23:27:28.000Z","size":90,"stargazers_count":2555,"open_issues_count":20,"forks_count":617,"subscribers_count":143,"default_branch":"master","last_synced_at":"2024-12-17T01:03:34.827Z","etag":null,"topics":[],"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/dropbox.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":"2013-09-06T22:08:56.000Z","updated_at":"2024-12-16T02:11:22.000Z","dependencies_parsed_at":"2022-07-14T08:32:13.275Z","dependency_job_id":null,"html_url":"https://github.com/dropbox/json11","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dropbox%2Fjson11","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dropbox%2Fjson11/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dropbox%2Fjson11/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dropbox%2Fjson11/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dropbox","download_url":"https://codeload.github.com/dropbox/json11/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234575211,"owners_count":18854924,"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-07-30T22:00:54.693Z","updated_at":"2025-09-28T23:31:55.708Z","avatar_url":"https://github.com/dropbox.png","language":"C++","readme":"json11\n------\n\njson11 is a tiny JSON library for C++11, providing JSON parsing and serialization.\n\nThe core object provided by the library is json11::Json. A Json object represents any JSON\nvalue: null, bool, number (int or double), string (std::string), array (std::vector), or\nobject (std::map).\n\nJson objects act like values. They can be assigned, copied, moved, compared for equality or\norder, and so on. There are also helper methods Json::dump, to serialize a Json to a string, and\nJson::parse (static) to parse a std::string as a Json object.\n\nIt's easy to make a JSON object with C++11's new initializer syntax:\n\n    Json my_json = Json::object {\n        { \"key1\", \"value1\" },\n        { \"key2\", false },\n        { \"key3\", Json::array { 1, 2, 3 } },\n    };\n    std::string json_str = my_json.dump();\n\nThere are also implicit constructors that allow standard and user-defined types to be\nautomatically converted to JSON. For example:\n\n    class Point {\n    public:\n        int x;\n        int y;\n        Point (int x, int y) : x(x), y(y) {}\n        Json to_json() const { return Json::array { x, y }; }\n    };\n\n    std::vector\u003cPoint\u003e points = { { 1, 2 }, { 10, 20 }, { 100, 200 } };\n    std::string points_json = Json(points).dump();\n\nJSON values can have their values queried and inspected:\n\n    Json json = Json::array { Json::object { { \"k\", \"v\" } } };\n    std::string str = json[0][\"k\"].string_value();\n\nFor more documentation see json11.hpp.\n","funding_links":[],"categories":["TODO scan for Android support in followings","JSON","C++","C/C++","Libraries","进程间通信"],"sub_categories":["JSON","Json"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdropbox%2Fjson11","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdropbox%2Fjson11","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdropbox%2Fjson11/lists"}