| 1886 | } |
| 1887 | |
| 1888 | CJSON_PUBLIC(cJSON *) cJSON_GetArrayItem(const cJSON *array, int index) |
| 1889 | { |
| 1890 | if (index < 0) |
| 1891 | { |
| 1892 | return NULL; |
| 1893 | } |
| 1894 | |
| 1895 | return get_array_item(array, (size_t)index); |
| 1896 | } |
| 1897 | |
| 1898 | static cJSON *get_object_item(const cJSON * const object, const char * const name, const cJSON_bool case_sensitive) |
| 1899 | { |
no test coverage detected