Browse Source

Util: Fix empty Array parsing

master
Riyyi 2 years ago
parent
commit
ea7049306e
  1. 2
      src/util/json/parser.cpp

2
src/util/json/parser.cpp

@ -337,9 +337,9 @@ Value Parser::getArray()
// Trailing comma
if (array.asArray().size() > 0) {
reportError((*m_tokens)[m_index - 1], "invalid comma, expecting ']'");
}
break;
}
}
else {
reportError(token, "expecting value or ']', not '" + token.symbol + "'");
break;

Loading…
Cancel
Save