Unverified Commit ddbdb658 authored by abbaswasim's avatar abbaswasim Committed by GitHub

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.
parent 176d8e26
......@@ -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
......
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