|
|
@ -289,10 +289,12 @@ int jsmn_parse(jsmn_parser *parser, const char *js, size_t len,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
for (i = parser->toknext - 1; i >= 0; i--) {
|
|
|
|
if (tokens != NULL) {
|
|
|
|
/* Unmatched opened object or array */
|
|
|
|
for (i = parser->toknext - 1; i >= 0; i--) {
|
|
|
|
if (tokens[i].start != -1 && tokens[i].end == -1) {
|
|
|
|
/* Unmatched opened object or array */
|
|
|
|
return JSMN_ERROR_PART;
|
|
|
|
if (tokens[i].start != -1 && tokens[i].end == -1) {
|
|
|
|
|
|
|
|
return JSMN_ERROR_PART;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|