summaryrefslogtreecommitdiff
path: root/jsmn.h
diff options
context:
space:
mode:
authorSerge A. Zaitsev <zaitsev.serge@gmail.com>2015-10-17 10:50:22 +0200
committerSerge A. Zaitsev <zaitsev.serge@gmail.com>2015-10-17 10:50:22 +0200
commit226f318224e772edf3109da3af1d283e6dee3d57 (patch)
tree2e6c18dc217512af8a0be28dc2f7f1514694539b /jsmn.h
parentd87c22d2cd38bb4065d2b33cb683792c2dc9eed3 (diff)
json token type enum doesn't start with zero value anymore, fixes #24
Diffstat (limited to 'jsmn.h')
-rw-r--r--jsmn.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/jsmn.h b/jsmn.h
index 95fb2cabd..59cbaa2be 100644
--- a/jsmn.h
+++ b/jsmn.h
@@ -15,10 +15,11 @@ extern "C" {
* o Other primitive: number, boolean (true/false) or null
*/
typedef enum {
- JSMN_PRIMITIVE = 0,
+ JSMN_UNDEFINED = 0,
JSMN_OBJECT = 1,
JSMN_ARRAY = 2,
- JSMN_STRING = 3
+ JSMN_STRING = 3,
+ JSMN_PRIMITIVE = 4
} jsmntype_t;
typedef enum {