MCPcopy Create free account
hub / github.com/OpenDriveLab/OpenLane / cJSON_CreateArray

Function cJSON_CreateArray

eval/LANE_evaluation/lane2d/src/cJSON.c:1037–1043  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1035 return item;
1036}
1037cJSON *cJSON_CreateArray()
1038{
1039 cJSON *item = cJSON_New_Item();
1040 if (item)
1041 item->type = cJSON_Array;
1042 return item;
1043}
1044cJSON *cJSON_CreateObject()
1045{
1046 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