MCPcopy Create free account
hub / github.com/Bwar/CJsonObject / cJSON_CreateObject

Function cJSON_CreateObject

cJSON.c:1038–1044  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1036 return item;
1037}
1038cJSON *cJSON_CreateObject()
1039{
1040 cJSON *item = cJSON_New_Item();
1041 if (item)
1042 item->type = cJSON_Object;
1043 return item;
1044}
1045
1046/* Create Arrays: */
1047cJSON *cJSON_CreateIntArray(int *numbers, int sign, int count)

Callers 5

AddEmptySubObjectMethod · 0.85
AddEmptySubArrayMethod · 0.85
AddMethod · 0.85
AddWithMoveMethod · 0.85
AddNullMethod · 0.85

Calls 1

cJSON_New_ItemFunction · 0.85

Tested by

no test coverage detected