forked from bblanchon/ArduinoJson
Fixed deserializeJson() that stopped reading after {} (fixes #1335)
This commit is contained in:
1 parent
96b6571352
commit
35a39b8d8f
3 files changed
+13
-4
No files matched your search
@@ -290,4 +290,10 @@ TEST_CASE("deserialize JSON object") {
|
||||
REQUIRE(obj.size() == 0);
|
||||
REQUIRE(doc.memoryUsage() == JSON_OBJECT_SIZE(0));
|
||||
}
|
||||
|
||||
SECTION("Issue #1335") {
|
||||
std::string json("{\"a\":{},\"b\":{}}");
|
||||
deserializeJson(doc, json);
|
||||
CHECK(doc.as<std::string>() == json);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user