MCPcopy Create free account
hub / github.com/Bwar/CJsonObject / IsArray

Method IsArray

CJsonObject.cpp:571–596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

569}
570
571bool 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
598std::string CJsonObject::ToString() const
599{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected