Go to the source code of this file.
|
vsf_json_type_t | vsf_json_enumerate_start (vsf_json_enumerator_t *e, const char *json) |
|
char * | vsf_json_enumerate_next (vsf_json_enumerator_t *e) |
|
char * | vsf_json_get (const char *json, const char *key) |
|
int | vsf_json_num_of_entry (const char *json) |
|
vsf_json_type_t | vsf_json_get_type (const char *json) |
|
int | vsf_json_get_string (const char *json, char *result, int len) |
|
int | vsf_json_get_number (const char *json, double *result) |
|
int | vsf_json_get_boolean (const char *json, bool *result) |
|
void | vsf_json_constructor_init (vsf_json_constructor_t *c, void *param, int(*write_str)(void *, char *, int)) |
|
int | vsf_json_constructor_buffer_write_str (void *param, char *str, int len) |
|
int | vsf_json_write_str (vsf_json_constructor_t *c, char *buf, int len) |
|
int | vsf_json_set_key (vsf_json_constructor_t *c, char *key) |
|
int | vsf_json_set_string (vsf_json_constructor_t *c, char *key, char *value) |
|
int | vsf_json_set_integer (vsf_json_constructor_t *c, char *key, int value) |
|
int | vsf_json_set_double (vsf_json_constructor_t *c, char *key, double value) |
|
int | vsf_json_set_boolean (vsf_json_constructor_t *c, char *key, bool value) |
|
int | vsf_json_set_null (vsf_json_constructor_t *c, char *key) |
|
◆ vsf_json_set_object
#define vsf_json_set_object |
( |
|
__c, |
|
|
|
__key, |
|
|
|
... |
|
) |
| |
Value: do { \
if (len < 0) break; \
if (len < 0) break; \
__VA_ARGS__; \
len = vsf_json_write_str((__c), "}", 1); \
if (len < 0) break; \
} while (0)
@ true
Definition type.h:62
int vsf_json_write_str(vsf_json_constructor_t *c, char *buf, int len)
Definition vsf_json.c:347
int vsf_json_set_key(vsf_json_constructor_t *c, char *key)
Definition vsf_json.c:367
◆ vsf_json_set_array
#define vsf_json_set_array |
( |
|
__c, |
|
|
|
__key, |
|
|
|
... |
|
) |
| |
Value: do { \
if (len < 0) break; \
if (len < 0) break; \
__VA_ARGS__; \
if (len < 0) break; \
◆ vsf_json_type_t
◆ vsf_json_type_t
Enumerator |
---|
VSF_JSON_TYPE_INVALID | |
VSF_JSON_TYPE_OBJECT | |
VSF_JSON_TYPE_ARRAY | |
VSF_JSON_TYPE_STRING | |
VSF_JSON_TYPE_NUMBER | |
VSF_JSON_TYPE_BOOLEAN | |
VSF_JSON_TYPE_NULL | |
◆ vsf_json_enumerate_start()
◆ vsf_json_enumerate_next()
◆ vsf_json_get()
char * vsf_json_get |
( |
const char * |
json, |
|
|
const char * |
key |
|
) |
| |
|
extern |
◆ vsf_json_num_of_entry()
int vsf_json_num_of_entry |
( |
const char * |
json | ) |
|
|
extern |
◆ vsf_json_get_type()
◆ vsf_json_get_string()
int vsf_json_get_string |
( |
const char * |
json, |
|
|
char * |
result, |
|
|
int |
len |
|
) |
| |
|
extern |
◆ vsf_json_get_number()
int vsf_json_get_number |
( |
const char * |
json, |
|
|
double * |
result |
|
) |
| |
|
extern |
◆ vsf_json_get_boolean()
int vsf_json_get_boolean |
( |
const char * |
json, |
|
|
bool * |
result |
|
) |
| |
|
extern |
◆ vsf_json_constructor_init()
void vsf_json_constructor_init |
( |
vsf_json_constructor_t * |
c, |
|
|
void * |
param, |
|
|
int(*)(void *, char *, int) |
write_str |
|
) |
| |
|
extern |
◆ vsf_json_constructor_buffer_write_str()
int vsf_json_constructor_buffer_write_str |
( |
void * |
param, |
|
|
char * |
str, |
|
|
int |
len |
|
) |
| |
|
extern |
◆ vsf_json_write_str()
◆ vsf_json_set_key()
◆ vsf_json_set_string()
◆ vsf_json_set_integer()
◆ vsf_json_set_double()
◆ vsf_json_set_boolean()
◆ vsf_json_set_null()