1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-21 04:22:05 +03:00

Merge pull request #2054 from nlohmann/feature/issue1983

Fix bug in diff function
This commit is contained in:
Niels Lohmann
2020-04-20 19:44:35 +02:00
committed by GitHub
3 changed files with 10 additions and 2 deletions

View File

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