From ea7049306e6fd5b4671ca03fd228ab9b4cb2d090 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Sun, 10 Jul 2022 16:13:44 +0200 Subject: [PATCH] Util: Fix empty Array parsing --- src/util/json/parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/json/parser.cpp b/src/util/json/parser.cpp index a0d9730..4fcd590 100644 --- a/src/util/json/parser.cpp +++ b/src/util/json/parser.cpp @@ -337,8 +337,8 @@ Value Parser::getArray() // Trailing comma if (array.asArray().size() > 0) { reportError((*m_tokens)[m_index - 1], "invalid comma, expecting ']'"); + break; } - break; } else { reportError(token, "expecting value or ']', not '" + token.symbol + "'");