Fix amount of entries in the json object

After the initial j.push_back() calls there is another j.emplace_back() call that makes the size == 4 not 3.
This commit is contained in:
abbaswasim 2021-03-02 01:42:33 +00:00 committed by GitHub
parent 176d8e261a
commit ddbdb65834
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