| 2251 | } |
| 2252 | |
| 2253 | int CJsonObject::GetArraySize() const |
| 2254 | { |
| 2255 | if (m_pJsonData != NULL) |
| 2256 | { |
| 2257 | if (m_pJsonData->type == cJSON_Array) |
| 2258 | { |
| 2259 | return(cJSON_GetArraySize(m_pJsonData)); |
| 2260 | } |
| 2261 | } |
| 2262 | else if (m_pExternJsonDataRef != NULL) |
| 2263 | { |
| 2264 | if(m_pExternJsonDataRef->type == cJSON_Array) |
| 2265 | { |
| 2266 | return(cJSON_GetArraySize(m_pExternJsonDataRef)); |
| 2267 | } |
| 2268 | } |
| 2269 | return(0); |
| 2270 | } |
| 2271 | |
| 2272 | bool CJsonObject::Get(int iWhich, CJsonObject& oJsonObject) const |
| 2273 | { |
no test coverage detected