cjson · Section 3
cjson_list_get
NAME
cjson_list_get - access an array element by index
LIBRARY
C Collections (libccollections, -lccollections)
SYNOPSIS
#include <ccollections/cjson.h> cjson cjson_list_get(cjson arr, size_t index);
DESCRIPTION
Returns the element at position index of arr. The array keeps owning the element, so the reference is borrowed.
RETURN VALUE
The child node, or NULL when index is out of bounds or arr is not a CJSON_LIST.