|
|
@ -89,6 +89,9 @@ void json_add_string(struct json_result *result, const char *fieldname, const ch |
|
|
|
void json_add_literal(struct json_result *result, const char *fieldname, |
|
|
|
const char *literal, int len); |
|
|
|
/* '"fieldname" : value' or 'value' if fieldname is NULL */ |
|
|
|
void json_add_snum(struct json_result *result, const char *fieldname, |
|
|
|
int value); |
|
|
|
/* '"fieldname" : value' or 'value' if fieldname is NULL */ |
|
|
|
void json_add_num(struct json_result *result, const char *fieldname, |
|
|
|
unsigned int value); |
|
|
|
/* '"fieldname" : value' or 'value' if fieldname is NULL */ |
|
|
|