CJSONEntry CJSONArrayIterator::getCurItem() { return CJSONEntry( isEnd() ? 0 : ( struct json_object *) array_list_get_idx(m_array, m_nCurItem) ); }
CJSONEntry CJSONStructIterator::getCurValue() { return CJSONEntry( isEnd() ? 0 : ( struct json_object *) m_curEntry->v ); }
CJSONEntry CJSONEntry::getEntry(const char* name)const { struct json_object* obj = json_object_object_get(m_object,const_cast<char*>(name)); return CJSONEntry(obj); }
CJSONEntry CJSONArray::getItem(int nPos) { return CJSONEntry( nPos >= getSize() ? 0 : ( struct json_object *) array_list_get_idx(m_array, nPos) ); }