commit | 32d149c8f60a5bdad4f678013a83d052ffd8ad43 | [log] [tgz] |
---|---|---|
author | Remi Collet <fedora@famillecollet.com> | Thu Dec 13 11:46:04 2012 +0100 |
committer | Remi Collet <fedora@famillecollet.com> | Thu Dec 13 11:46:04 2012 +0100 |
tree | 33bdc57adf2fd21a75aab5f3f86261899d35b4c2 | |
parent | 8c847968c7de17be6cf3878a4e6adca8ab8d8f14 [diff] [blame] |
probably worth an option for this
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 @@ * 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)