C Collections

cjson · Section 3

cjson_list_get

cjson_list_get - access an array element by index

C Collections (libccollections, -lccollections)

#include <ccollections/cjson.h>
 
cjson cjson_list_get(cjson arr, size_t index);

Returns the element at position index of arr.  The array keeps
owning the element, so the reference is borrowed.

The child node, or NULL when index is out of bounds or arr is not a
CJSON_LIST.

cjson_list_push(3), cjson_list_size(3)