Merge pull request #2659 from abbaswasim/patch-1
Fix amount of entries in the json object
This commit is contained in:
commit
098dd6bf34
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user