mirror of
https://github.com/nlohmann/json.git
synced 2026-10-14 18:27:13 +00:00
Merge pull request #1469 from garethsb-sony/json_pointer-append
Add operator/= and operator/ to construct a JSON pointer by appending two JSON pointers
This commit is contained in:
4 files changed
+238
-26
No files matched your search
@@ -7493,7 +7493,7 @@ class basic_json
|
||||
const auto operation_add = [&result](json_pointer & ptr, basic_json val)
|
||||
{
|
||||
// adding to the root of the target document means replacing it
|
||||
if (ptr.is_root())
|
||||
if (ptr.empty())
|
||||
{
|
||||
result = val;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user