kw_get_list_value()#
Get the value at a specified index in a JSON array (list). Works with json_t *.
Prototype
PUBLIC json_t *kw_get_list_value(
json_t *kw,
size_t index
);
Parameters
Key |
Type |
Description |
|---|---|---|
|
The JSON array to query. |
|
|
|
The index of the value to retrieve. |
Return Value
Returns a pointer to the value at the specified index, or NULL if the index is out of bounds.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples