Still will report invalid amount if we fetch it with something like "{"key 1": 1234}}"
master
pt300 8 years ago
parent 6021415cc7
commit ad72aac67a

@ -198,6 +198,9 @@ int jsmn_parse(jsmn_parser *parser, const char *js, size_t len,
break; break;
} }
if (token->parent == -1) { if (token->parent == -1) {
if(token->type != type) {
return JSMN_ERROR_INVAL;
}
break; break;
} }
token = &tokens[token->parent]; token = &tokens[token->parent];

Loading…
Cancel
Save