summaryrefslogtreecommitdiff
path: root/json_object.h
diff options
context:
space:
mode:
authorEric Haszlakiewicz <erh+git@nimenees.com>2013-02-26 21:09:10 -0600
committerEric Haszlakiewicz <erh+git@nimenees.com>2013-02-26 21:09:10 -0600
commit5b36a432c8b13f3534ade4c4b5ac721b6e35287a (patch)
tree624962b6a45b3c9bfa642c773aabe5fdab8a59e3 /json_object.h
parent9b64c05ff9feb1cdb1e5ae5e134e5e6ff85dbb1b (diff)
parent32d149c8f60a5bdad4f678013a83d052ffd8ad43 (diff)
Merge branch 'remicollet-issue-float'
Conflicts: json_util.c
Diffstat (limited to 'json_object.h')
-rw-r--r--json_object.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/json_object.h b/json_object.h
index e18af8a..7085d0a 100644
--- a/json_object.h
+++ b/json_object.h
@@ -42,6 +42,10 @@ extern "C" {
* for an example of the format.
*/
#define JSON_C_TO_STRING_PRETTY (1<<1)
+/**
+ * A flag to drop trailing zero for float values
+ */
+#define JSON_C_TO_STRING_NOZERO (1<<2)
#undef FALSE
#define FALSE ((json_bool)0)