MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / cJSON_GetObjectItem

Function cJSON_GetObjectItem

lib/cJSON.c:1823–1831  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1821}
1822
1823cJSON *cJSON_GetObjectItem(const cJSON *object, const char *string)
1824{
1825 cJSON *c = object ? object->child : NULL;
1826 while (c && cJSON_strcasecmp((unsigned char*)c->string, (const unsigned char*)string))
1827 {
1828 c = c->next;
1829 }
1830 return c;
1831}
1832
1833cjbool cJSON_HasObjectItem(const cJSON *object, const char *string)
1834{

Callers 1

cJSON_HasObjectItemFunction · 0.70

Calls 1

cJSON_strcasecmpFunction · 0.70

Tested by

no test coverage detected