|
Nyx Node
|
Struct describing a JSON dict object. More...
#include <nyx_node.h>
Public Member Functions | |
| nyx_dict_t * | nyx_dict_new (void) |
| Allocates a new JSON dict object. | |
| void | nyx_dict_free (nyx_dict_t *object) |
| Frees memory of the provided JSON dict object. | |
| void | nyx_dict_clear (nyx_dict_t *object) |
| Clears the content of the provided JSON dict object. | |
| void | nyx_dict_del (nyx_dict_t *object, STR_t key) |
| Deletes the entry of the provided key. | |
| bool | nyx_dict_iterate (nyx_dict_iter_t *iter, STR_t *key, nyx_object_t **object) |
| Iterates over a JSON dict object. | |
| nyx_object_t * | nyx_dict_get (const nyx_dict_t *object, STR_t key) |
| Gets the JSON object of the provided key. | |
| bool | nyx_dict_set (nyx_dict_t *object, STR_t key, void *value) |
| Sets a JSON object in the provided JSON dict object. | |
| size_t | nyx_dict_size (const nyx_dict_t *object) |
| Gets the number of items in the provided JSON dict object. | |
| str_t | nyx_dict_to_string (const nyx_dict_t *object) |
| Returns a string representing the provided JSON dict object. | |
| __NYX_INLINE__ bool | nyx_dict_get_boolean (const nyx_dict_t *object, STR_t key) |
| Gets a boolean value of the provided key. | |
| __NYX_INLINE__ double | nyx_dict_get_number (const nyx_dict_t *object, STR_t key) |
| Gets a number value of the provided key. | |
| __NYX_INLINE__ STR_t | nyx_dict_get_string (const nyx_dict_t *object, STR_t key) |
| Gets a C string value of the provided key. | |
Struct describing a JSON dict object.