🐛 fix bug in diff function #1983

This commit is contained in:
Niels Lohmann 2020-04-13 14:35:36 +02:00
parent b7be613b6e
commit dd04a32918
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69
3 changed files with 10 additions and 2 deletions

View file

@ -7930,7 +7930,7 @@ class basic_json
result.push_back(
{
{"op", "add"},
{"path", path + "/" + std::to_string(i)},
{"path", path + "/-"},
{"value", target[i]}
});
++i;