Merge pull request #2659 from abbaswasim/patch-1

Fix amount of entries in the json object
This commit is contained in:
Niels Lohmann
2021-03-23 07:22:44 +01:00
committed by GitHub

View File

@@ -580,7 +580,7 @@ bool foo = j.at(2);
j == "[\"foo\", 42, true, 1.78]"_json; // true
// other stuff
j.size(); // 3 entries
j.size(); // 4 entries
j.empty(); // false
j.type(); // json::value_t::array
j.clear(); // the array is empty again