diff options
| author | Philippe Guibert <philippe.guibert@6wind.com> | 2020-02-18 15:20:28 +0100 |
|---|---|---|
| committer | Philippe Guibert <philippe.guibert@6wind.com> | 2020-03-31 14:38:15 +0200 |
| commit | 799cc002866c077fcc4012caa8b0d604924c7e32 (patch) | |
| tree | bb0cec08124831383adef2275c4bd2da626d176b /lib/json.h | |
| parent | 620e23e80728b145f69bc1cc962e30085f829afa (diff) | |
lib: add json api to encode double values
this api can be used to encode double values.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'lib/json.h')
| -rw-r--r-- | lib/json.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/json.h b/lib/json.h index c8866c524a..afe0b175da 100644 --- a/lib/json.h +++ b/lib/json.h @@ -48,6 +48,9 @@ extern void json_object_int_add(struct json_object *obj, const char *key, int64_t i); void json_object_boolean_add(struct json_object *obj, const char *key, bool val); + +extern void json_object_double_add(struct json_object *obj, const char *key, + double i); extern void json_object_boolean_false_add(struct json_object *obj, const char *key); extern void json_object_boolean_true_add(struct json_object *obj, |
