Lines Matching full:root
140 std::unique_ptr<cJSON, std::function<void(cJSON*)>> root(cJSON_CreateObject(), in DumpRes() local
142 if (!root) { in DumpRes()
143 …r(GetError(ERR_CODE_UNDEFINED_ERROR).FormatCause("unable to create cJSON object for root object")); in DumpRes()
150 cJSON_AddItemToObject(root.get(), "bundleName", bundleName); in DumpRes()
153 cJSON_AddItemToObject(root.get(), "moduleName", moduleName); in DumpRes()
162 cJSON_AddItemToObject(root.get(), "resource", resource); in DumpRes()
168 char *rawStr = cJSON_Print(root.get()); in DumpRes()
355 std::unique_ptr<cJSON, std::function<void(cJSON*)>> root(cJSON_CreateObject(), in DumpRes() local
357 if (!root) { in DumpRes()
358 …r(GetError(ERR_CODE_UNDEFINED_ERROR).FormatCause("unable to create cJSON object for root object")); in DumpRes()
366 cJSON_AddItemToObject(root.get(), "config", configs); in DumpRes()
385 char *rawStr = cJSON_Print(root.get()); in DumpRes()