From cbc073c78e086bf740697f0ef8e4cfcf28e41638 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Mon, 28 Sep 2020 14:46:59 +0200 Subject: [PATCH] Fix JSMN boolean parsing --- lib/jsmn-shadinger-1.0/src/jsmn.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/jsmn-shadinger-1.0/src/jsmn.cpp b/lib/jsmn-shadinger-1.0/src/jsmn.cpp index 8f7a59708..905d102f4 100644 --- a/lib/jsmn-shadinger-1.0/src/jsmn.cpp +++ b/lib/jsmn-shadinger-1.0/src/jsmn.cpp @@ -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];