| 2214 | } |
| 2215 | |
| 2216 | int CJsonObject::GetArraySize() |
| 2217 | { |
| 2218 | if (m_pJsonData != NULL) |
| 2219 | { |
| 2220 | if (m_pJsonData->type == cJSON_Array) |
| 2221 | { |
| 2222 | return(cJSON_GetArraySize(m_pJsonData)); |
| 2223 | } |
| 2224 | } |
| 2225 | else if (m_pExternJsonDataRef != NULL) |
| 2226 | { |
| 2227 | if(m_pExternJsonDataRef->type == cJSON_Array) |
| 2228 | { |
| 2229 | return(cJSON_GetArraySize(m_pExternJsonDataRef)); |
| 2230 | } |
| 2231 | } |
| 2232 | return(0); |
| 2233 | } |
| 2234 | |
| 2235 | bool CJsonObject::Get(int iWhich, CJsonObject& oJsonObject) const |
| 2236 | { |
no test coverage detected