mirror of
https://github.com/openharmony/developtools_global_resource_tool.git
synced 2026-07-21 06:55:24 -04:00
@@ -292,6 +292,9 @@ string CompressionParser::ParseJsonStr(const cJSON *node)
|
||||
return "";
|
||||
}
|
||||
char *jsonString = cJSON_Print(node);
|
||||
if (jsonString == nullptr) {
|
||||
return "";
|
||||
}
|
||||
string res(jsonString);
|
||||
free(jsonString);
|
||||
return res;
|
||||
|
||||
Reference in New Issue
Block a user