From ddbdb65834fe82d648cdd00b9e2965dac7a0377d Mon Sep 17 00:00:00 2001 From: abbaswasim Date: Tue, 2 Mar 2021 01:42:33 +0000 Subject: [PATCH] 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. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5d354f1ed..26f8a6069 100644 --- a/README.md +++ b/README.md @@ -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