MCPcopy Create free account
hub / github.com/alibaba/CicadaPlayer / addArray

Method addArray

framework/utils/CicadaJSON.cpp:260–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258
259
260void CicadaJSONItem::addArray(const std::string &name, CicadaJSONArray &array)
261{
262 if (mJSON) {
263 cJSON_AddItemToObject(mJSON, name.c_str(), array.getJSONCopy());
264 }
265}
266
267
268const cJSON *CicadaJSONItem::getJSON()

Callers 2

GetOptionMethod · 0.80

Calls 2

cJSON_AddItemToObjectFunction · 0.85
getJSONCopyMethod · 0.80

Tested by

no test coverage detected