C Collections

cjson · Section 3

cjson_dictionary_get

cjson_dictionary_get - look up a key in an object node

C Collections (libccollections, -lccollections)

#include <ccollections/cjson.h>
 
cjson cjson_dictionary_get(cjson obj, const char *key);

Returns the value stored under key in obj.  The object keeps owning
the value, so the reference is borrowed.

The child node, or NULL when obj has no such key or is not a
CJSON_DICTIONARY.

cjson_dictionary_first(3), cjson_dictionary_set(3), cjson_dictionary_size(3)