MCPcopy Create free account
hub / github.com/PointCloudLibrary/pcl / cJSON_Parse

Function cJSON_Parse

outofcore/src/cJSON.cpp:253–261  ·  view source on GitHub ↗

Parse an object - create a new root, and populate. */

Source from the content-addressed store, hash-verified

251
252/* Parse an object - create a new root, and populate. */
253cJSON *cJSON_Parse(const char *value)
254{
255 cJSON *c=cJSON_New_Item();
256 ep=nullptr;
257 if (!c) return nullptr; /* memory fail */
258
259 if (!parse_value(c,skip(value))) {cJSON_Delete(c);return nullptr;}
260 return c;
261}
262
263/* Render a cJSON item/entity/structure to text. */
264char *cJSON_Print(cJSON *item) {return print_value(item,0,1);}

Callers 2

loadMetadataFromDiskMethod · 0.85
loadMetadataFromDiskMethod · 0.85

Calls 4

cJSON_New_ItemFunction · 0.85
parse_valueFunction · 0.85
skipFunction · 0.85
cJSON_DeleteFunction · 0.85

Tested by

no test coverage detected