Yodiwo / YodiwoPlegma
Revision:
1:e204589f4229
Parent:
0:384a04dc912e
Child:
2:855390040d43
--- a/yodiwo_helpers.c	Tue Sep 01 10:21:56 2015 +0000
+++ b/yodiwo_helpers.c	Fri Sep 04 08:19:58 2015 +0000
@@ -31,7 +31,7 @@
 		for (i = 0; i < tableSize; i++) {
 			// Try to find a match
 			int l = (tok->end - tok->start);
-			if ((tok->type == JSMN_PRIMITIVE) &&
+			if ((tok->type == JSMN_PRIMITIVE || tok->type == JSMN_STRING) &&
 				(l == table[i].filedNameLength) &&
 				(memcmp(&json[tok->start], table[i].fieldName, l) == 0))
 			{