summaryrefslogtreecommitdiff
path: root/json_object.h
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2012-12-13 11:46:04 +0100
committerRemi Collet <fedora@famillecollet.com>2012-12-13 11:46:04 +0100
commit32d149c8f60a5bdad4f678013a83d052ffd8ad43 (patch)
tree33bdc57adf2fd21a75aab5f3f86261899d35b4c2 /json_object.h
parent8c847968c7de17be6cf3878a4e6adca8ab8d8f14 (diff)
probably worth an option for this
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 2621112..1f70461 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)