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.
pull/2659/head
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
1 changed files with 1 additions and 1 deletions

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