| 582 | } |
| 583 | |
| 584 | bool CJsonObject::IsArray() const |
| 585 | { |
| 586 | cJSON* pFocusData = NULL; |
| 587 | if (m_pJsonData != NULL) |
| 588 | { |
| 589 | pFocusData = m_pJsonData; |
| 590 | } |
| 591 | else if (m_pExternJsonDataRef != NULL) |
| 592 | { |
| 593 | pFocusData = m_pExternJsonDataRef; |
| 594 | } |
| 595 | |
| 596 | if (pFocusData == NULL) |
| 597 | { |
| 598 | return(false); |
| 599 | } |
| 600 | |
| 601 | if (pFocusData->type == cJSON_Array) |
| 602 | { |
| 603 | return(true); |
| 604 | } |
| 605 | else |
| 606 | { |
| 607 | return(false); |
| 608 | } |
| 609 | } |
| 610 | |
| 611 | std::string CJsonObject::ToString() const |
| 612 | { |
nothing calls this directly
no outgoing calls
no test coverage detected