| 73 | } |
| 74 | |
| 75 | CJSON_PUBLIC(char *) cJSON_GetStringValue(cJSON *item) { |
| 76 | if (!cJSON_IsString(item)) { |
| 77 | return NULL; |
| 78 | } |
| 79 | |
| 80 | return item->valuestring; |
| 81 | } |
| 82 | |
| 83 | /* This is a safeguard to prevent copy-pasters from using incompatible C and header files */ |
| 84 | #if (CJSON_VERSION_MAJOR != 1) || (CJSON_VERSION_MINOR != 7) || (CJSON_VERSION_PATCH != 10) |