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

Function cJSON_CreateArray

cJSON.c:1031–1037  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1029 return item;
1030}
1031cJSON *cJSON_CreateArray()
1032{
1033 cJSON *item = cJSON_New_Item();
1034 if (item)
1035 item->type = cJSON_Array;
1036 return item;
1037}
1038cJSON *cJSON_CreateObject()
1039{
1040 cJSON *item = cJSON_New_Item();

Callers 11

AddEmptySubArrayMethod · 0.85
AddMethod · 0.85
AddWithMoveMethod · 0.85
AddNullMethod · 0.85
AddAsFirstMethod · 0.85
AddAsFirstWithMoveMethod · 0.85
AddNullAsFirstMethod · 0.85
cJSON_CreateIntArrayFunction · 0.85
cJSON_CreateFloatArrayFunction · 0.85
cJSON_CreateDoubleArrayFunction · 0.85
cJSON_CreateStringArrayFunction · 0.85

Calls 1

cJSON_New_ItemFunction · 0.85

Tested by

no test coverage detected