common/json: Add json_add_double.

This commit is contained in:
ZmnSCPxj
2018-02-07 13:06:36 +00:00
committed by Christian Decker
parent 2a979a2d5c
commit e1284b1df1
2 changed files with 8 additions and 0 deletions

View File

@@ -90,6 +90,9 @@ void json_add_literal(struct json_result *result, const char *fieldname,
void json_add_snum(struct json_result *result, const char *fieldname,
int value);
/* '"fieldname" : value' or 'value' if fieldname is NULL */
void json_add_double(struct json_result *result, const char *fieldname,
double 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 */