summaryrefslogtreecommitdiff
path: root/json.h
diff options
context:
space:
mode:
Diffstat (limited to 'json.h')
-rw-r--r--json.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/json.h b/json.h
index 3f53f6a..16654ed 100644
--- a/json.h
+++ b/json.h
@@ -82,7 +82,11 @@ struct JSON
size_t length;
} string;
- /* JSON_NUMBER */
+ /*
+ * JSON_NUMBER
+ *
+ * Numbers are encoded as strings to avoid unnecessary precision loss.
+ */
char *number;
/* JSON_ARRAY or JSON_OBJECT (children) */