Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
cjson/cJSON.h
✓ #include <cjson/cJSON.h>
Parse a JSON string and access a value
#include "cjson/cJSON.h"
#include <cstdio>
int main() {
const char* json = "{\"name\":\"World\"}";
cJSON* root = cJSON_Parse(json);
cJSON* name = cJSON_GetObjectItem(root, "name");
printf("Hello %s\n", name->valuestring);
cJSON_Delete(root);
return 0;
}
Audit
Dependencies
No dependency data recorded yet.
Resources
No resource links recorded.