| 569 | } |
| 570 | |
| 571 | bool CJsonObject::IsArray() const |
| 572 | { |
| 573 | cJSON* pFocusData = NULL; |
| 574 | if (m_pJsonData != NULL) |
| 575 | { |
| 576 | pFocusData = m_pJsonData; |
| 577 | } |
| 578 | else if (m_pExternJsonDataRef != NULL) |
| 579 | { |
| 580 | pFocusData = m_pExternJsonDataRef; |
| 581 | } |
| 582 | |
| 583 | if (pFocusData == NULL) |
| 584 | { |
| 585 | return(false); |
| 586 | } |
| 587 | |
| 588 | if (pFocusData->type == cJSON_Array) |
| 589 | { |
| 590 | return(true); |
| 591 | } |
| 592 | else |
| 593 | { |
| 594 | return(false); |
| 595 | } |
| 596 | } |
| 597 | |
| 598 | std::string CJsonObject::ToString() const |
| 599 | { |
nothing calls this directly
no outgoing calls
no test coverage detected