summaryrefslogtreecommitdiff
path: root/json.h
diff options
context:
space:
mode:
authorJoey Adams2010-08-10 05:10:19 +0000
committerJoey Adams2010-08-10 05:10:19 +0000
commit75b17eeca0394e27759acf2f6b039851a5a28f98 (patch)
tree9c156bf2f70a49ed781a56ebfe89caed4edbc6a0 /json.h
parentf9f677a465a5746874dc2f2c86cc444ffa28a020 (diff)
Added explicit NULL and '\0' checks, and documented more functions/structures.
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) */