{"id":20758597,"url":"https://github.com/jacobious52/json-generics","last_synced_at":"2025-03-11T16:26:27.981Z","repository":{"id":96086176,"uuid":"43596504","full_name":"Jacobious52/Json-Generics","owner":"Jacobious52","description":"Classes to provide plain text serializable generic support for common C++ data types.","archived":false,"fork":false,"pushed_at":"2016-02-15T00:34:53.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-18T05:09:07.420Z","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/Jacobious52.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}},"created_at":"2015-10-03T11:11:27.000Z","updated_at":"2016-02-15T00:34:53.000Z","dependencies_parsed_at":"2023-05-02T01:58:45.854Z","dependency_job_id":null,"html_url":"https://github.com/Jacobious52/Json-Generics","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/Jacobious52%2FJson-Generics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jacobious52%2FJson-Generics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jacobious52%2FJson-Generics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jacobious52%2FJson-Generics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jacobious52","download_url":"https://codeload.github.com/Jacobious52/Json-Generics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243069024,"owners_count":20231188,"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-11-17T09:52:20.914Z","updated_at":"2025-03-11T16:26:27.950Z","avatar_url":"https://github.com/Jacobious52.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Generics\nClasses to provide json serializable generic support for common C++ data types.\n\nAllows for having mixed types in other generic types.\nBuilt in json serialization behaviour using streams\n\ne.g Have a map with a string and a vector, which has a float and a string and another map inside, with an int... etc\n\n#Really Basic Reading From File Usage\nThis uses a json helper to avoid messing with pointers and generic types\n\n```\nJson json = Json::load(\"imaginary_users_list_or_something.json\");\nstd::string email = json[\"users\"][\"jayp\"][\"email\"].asString();\nint something = json[\"stuff\"][0][\"things\"][\"deeper\"][32].asInt();\n```\n\n`Generic - base class`\n\n`GNumber - int \\ float`\n\n`GString - std::string`\n\n`GArray - std::vector\u003cGeneric *\u003e`\n\n`GDict - std::map\u003cstd::string, Generic *\u003e`\n____\n`GConfig` - Wrapper around a `GDict`\nUsed for writing and reading from a file. In a json format\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacobious52%2Fjson-generics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacobious52%2Fjson-generics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacobious52%2Fjson-generics/lists"}