1 #ifndef H_JSON_MORE_UTILS 2 #define H_JSON_MORE_UTILS 9 #define jo_new_double json_object_new_double 10 #define jo_new_int json_object_new_int 11 #define jo_new_array json_object_new_array 12 #define jo_new_string json_object_new_string 13 #define jo_new_null() 0 14 #define jo_add json_object_object_add 15 #define jo_del json_object_object_del 16 #define jo_free json_object_put 17 #define jo_get json_object_object_get 18 #define jo_new json_object_new_object 19 #define jo_array_add json_object_array_add 20 #define jo_array_get json_object_array_get_idx 21 #define jo_array_length json_object_array_length 22 #define jo_get_string json_object_get_string 39 void jo_add_int (JO parent,
const char*name,
int v);
43 void jo_add_string (JO parent,
const char*name,
const char*v);
54 int jo_read_string (JO parent,
const char*name,
char*v,
size_t max_len);
75 #define jo_to_string json_write
int jo_read_double_array(JO parent, const char *name, double *p, int n, double when_null)
int jo_read_string(JO parent, const char *name, char *v, size_t max_len)
void jo_add_double_array(JO parent, const char *name, const double *v, int n)
const char * json_write(JO jo)
JO json_parse(const char *str)
JO jo_new_int_array(const int *v, int n)
int jo_read_double(JO parent, const char *name, double *p)
JO json_read_stream(FILE *)
void jo_add_string(JO parent, const char *name, const char *v)
int jo_read_int_array(JO parent, const char *name, int *p, int n, int when_null)
void jo_add_int_array(JO parent, const char *name, const int *v, int n)
int json_stream_skip(FILE *)
int jo_has_field(JO s, const char *name)
JO jo_double_or_null(double d)
JO json_tokener_parse_len(const char *str, int len)
JO jo_new_double_array(const double *v, int n)
void jo_add_double(JO parent, const char *name, double v)
int json_to_int(JO jo, int *ptr)
int jo_read_from_double_array(JO array, double *p, int n, double when_null)
void jo_add_int(JO parent, const char *name, int v)
int json_to_double(JO jo, double *ptr)
int jo_read_int(JO parent, const char *name, int *p)