1
0
mirror of https://github.com/nlohmann/json synced 2025-01-13 02:40:06 +00:00

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
commit 098dd6bf34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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