Object

Object

Typedefs

typedef void kuvio_object

Functions

kuvio_object* kuvio_object_from_json(const char* json)
void kuvio_object_free(kuvio_object* object)

Typedef Documentation

typedef void kuvio_object

An object. Objects are represented as key-value based dictionaries with dynamically typed values. Through the C interface, objects are passed as opaque pointers that can be manipulated using the kuvio_object_* functions.

Function Documentation

void kuvio_object_free(kuvio_object* object)

Releases the memory allocated by object.

kuvio_object* kuvio_object_from_json(const char* json)

Creates an object by decoding the given JSON description.

Parameters
jsonUTF8-encoded text representing a JSON object.
Returns
An opaque pointer to a newly allocated object, or NULL if the call fails.
kuvio_object* pObject = kuvio_object_from_json("{\"key\": \"value\"}");