cjson · Section 3
cjson_dictionary_get
NAME
cjson_dictionary_get - look up a key in an object node
LIBRARY
C Collections (libccollections, -lccollections)
SYNOPSIS
#include <ccollections/cjson.h> cjson cjson_dictionary_get(cjson obj, const char *key);
DESCRIPTION
Returns the value stored under key in obj. The object keeps owning the value, so the reference is borrowed.
RETURN VALUE
The child node, or NULL when obj has no such key or is not a CJSON_DICTIONARY.
SEE ALSO
cjson_dictionary_first(3), cjson_dictionary_set(3), cjson_dictionary_size(3)