Commits

Mathias Brossard committed 095b38a

jsmn_parse_string() should set the token type to JSMN_STRING

Comments (0)

Files changed (1)

 			token = jsmn_get_token(parser);
 			if (token == NULL)
 				return JSMN_ERROR_NOMEM;
-			jsmn_fill_token(token, JSMN_PRIMITIVE, start+1, parser->pos);
+			jsmn_fill_token(token, JSMN_STRING, start+1, parser->pos);
 			return JSMN_SUCCESS;
 		}