Fix JSMN boolean parsing

This commit is contained in:
Theo Arends 2020-09-28 14:46:59 +02:00
parent 29f968eebf
commit cbc073c78e
1 changed files with 4 additions and 0 deletions

View File

@ -300,6 +300,10 @@ JSMN_API int jsmn_parse(jsmn_parser *parser, const char *js, const size_t len,
case 't':
case 'f':
case 'n':
// Add uppercase variants
case 'T':
case 'F':
case 'N':
/* And they must not be keys of the object */
if (tokens != NULL && parser->toksuper != -1) {
const jsmntok_t *t = &tokens[parser->toksuper];