Fixed deserializeJson() that stopped reading after {} (fixes #1335)

This commit is contained in:
Benoit Blanchon
2020-08-04 09:52:42 +02:00
parent 96b6571352
commit 35a39b8d8f
3 changed files with 13 additions and 4 deletions

View File

@ -213,10 +213,8 @@ class JsonDeserializer {
return false;
// Empty object?
if (eat('}')) {
_error = DeserializationError::Ok;
return false;
}
if (eat('}'))
return true;
// Read each key value pair
for (;;) {