Unverified Commit 098dd6bf authored by Niels Lohmann's avatar Niels Lohmann Committed by GitHub

Merge pull request #2659 from abbaswasim/patch-1

Fix amount of entries in the json object
parents 176d8e26 ddbdb658
...@@ -580,7 +580,7 @@ bool foo = j.at(2); ...@@ -580,7 +580,7 @@ bool foo = j.at(2);
j == "[\"foo\", 42, true, 1.78]"_json; // true j == "[\"foo\", 42, true, 1.78]"_json; // true
// other stuff // other stuff
j.size(); // 3 entries j.size(); // 4 entries
j.empty(); // false j.empty(); // false
j.type(); // json::value_t::array j.type(); // json::value_t::array
j.clear(); // the array is empty again j.clear(); // the array is empty again
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment