#include <stdbool.h>
#include <stddef.h>
Go to the source code of this file.
|
EXTERNC JsonNode * | json_mknull (void) |
|
EXTERNC JsonNode * | json_decode (const char *json) |
|
EXTERNC bool | json_validate (const char *json) |
|
char * | json_encode (const JsonNode *node) |
|
char * | json_encode_string (const char *str) |
|
char * | json_stringify (const JsonNode *node, const char *space) |
|
EXTERNC void | json_delete (JsonNode *node) |
|
EXTERNC JsonNode * | json_find_element (JsonNode *array, int index) |
|
EXTERNC JsonNode * | json_find_member (JsonNode *object, const char *key) |
|
EXTERNC JsonNode * | json_first_child (const JsonNode *node) |
|
EXTERNC bool | json_check (const JsonNode *node, char errmsg[256]) |
|
JsonNode * | json_mkbool (bool b) |
|
JsonNode * | json_mkstring (const char *s) |
|
JsonNode * | json_mknumber (double n) |
|
JsonNode * | json_mkarray (void) |
|
JsonNode * | json_mkobject (void) |
|
void | json_append_element (JsonNode *array, JsonNode *element) |
|
void | json_prepend_element (JsonNode *array, JsonNode *element) |
|
void | json_append_member (JsonNode *object, const char *key, JsonNode *value) |
|
void | json_prepend_member (JsonNode *object, const char *key, JsonNode *value) |
|
void | json_remove_from_parent (JsonNode *node) |
|
◆ EXTERNC
◆ json_foreach
#define json_foreach |
( |
|
i, |
|
|
|
object_or_array |
|
) |
| |
◆ JsonTag
Enumerator |
---|
JSON_NULL | |
JSON_BOOL | |
JSON_STRING | |
JSON_NUMBER | |
JSON_ARRAY | |
JSON_OBJECT | |
◆ json_append_element()
◆ json_append_member()
void json_append_member |
( |
JsonNode * |
object, |
|
|
const char * |
key, |
|
|
JsonNode * |
value |
|
) |
| |
◆ json_check()
◆ json_decode()
◆ json_delete()
◆ json_encode()
char* json_encode |
( |
const JsonNode * |
node | ) |
|
◆ json_encode_string()
char* json_encode_string |
( |
const char * |
str | ) |
|
◆ json_find_element()
◆ json_find_member()
◆ json_first_child()
◆ json_mkarray()
◆ json_mkbool()
◆ json_mknull()
◆ json_mknumber()
◆ json_mkobject()
◆ json_mkstring()
JsonNode* json_mkstring |
( |
const char * |
s | ) |
|
◆ json_prepend_element()
◆ json_prepend_member()
void json_prepend_member |
( |
JsonNode * |
object, |
|
|
const char * |
key, |
|
|
JsonNode * |
value |
|
) |
| |
◆ json_remove_from_parent()
void json_remove_from_parent |
( |
JsonNode * |
node | ) |
|
◆ json_stringify()
char* json_stringify |
( |
const JsonNode * |
node, |
|
|
const char * |
space |
|
) |
| |
◆ json_validate()
EXTERNC bool json_validate |
( |
const char * |
json | ) |
|