| 629 | } |
| 630 | |
| 631 | std::string CJsonObject::ToFormattedString() const |
| 632 | { |
| 633 | char* pJsonString = NULL; |
| 634 | std::string strJsonData = ""; |
| 635 | if (m_pJsonData != NULL) |
| 636 | { |
| 637 | pJsonString = cJSON_Print(m_pJsonData); |
| 638 | } |
| 639 | else if (m_pExternJsonDataRef != NULL) |
| 640 | { |
| 641 | pJsonString = cJSON_Print(m_pExternJsonDataRef); |
| 642 | } |
| 643 | if (pJsonString != NULL) |
| 644 | { |
| 645 | strJsonData = pJsonString; |
| 646 | free(pJsonString); |
| 647 | } |
| 648 | return(strJsonData); |
| 649 | } |
| 650 | |
| 651 | bool CJsonObject::KeyExist(const std::string& strKey) const |
| 652 | { |
nothing calls this directly
no test coverage detected