MCPcopy Create free account
hub / github.com/Tencent/TAD_Sim / ToString

Method ToString

common/map_sdk/transmission/src/CJsonObject.cpp:312–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

310}
311
312std::string CJsonObject::ToString() const {
313 char* pJsonString = NULL;
314 std::string strJsonData = "";
315 if (m_pJsonData != NULL) {
316 pJsonString = cJSON_PrintUnformatted(m_pJsonData);
317 } else if (m_pExternJsonDataRef != NULL) {
318 pJsonString = cJSON_PrintUnformatted(m_pExternJsonDataRef);
319 }
320 if (pJsonString != NULL) {
321 strJsonData = pJsonString;
322 free(pJsonString);
323 }
324 return (strJsonData);
325}
326
327std::string CJsonObject::ToFormattedString() const {
328 char* pJsonString = NULL;

Callers 7

operator==Method · 0.95
CJsonObjectMethod · 0.45
CJsonObject.cppFile · 0.45
AddMethod · 0.45
ReplaceMethod · 0.45
AddAsFirstMethod · 0.45
generatePostJsonFunction · 0.45

Calls 1

cJSON_PrintUnformattedFunction · 0.85

Tested by

no test coverage detected