-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Merge two json objects #1807
Copy link
Copy link
Closed
Labels
kind: questionsolution: proposed fixa fix for the issue has been proposed and waits for confirmationa fix for the issue has been proposed and waits for confirmation
Description
Activity
Metadata
Metadata
Assignees
Labels
kind: questionsolution: proposed fixa fix for the issue has been proposed and waits for confirmationa fix for the issue has been proposed and waits for confirmation
OS: ubuntu x64, compiler is g++
I'd like to merge two objects:
Expected result:
I found in example that I could be done with
merge_patchmethod but I can't find it in my installed package.I've installed the library from ubuntu package: https://packages.ubuntu.com/bionic/nlohmann-json-dev
error: ‘using json = using json = class nlohmann::basic_json<> {aka class nlohmann::basic_json<>}’ has no member named ‘merge_patch’
obj1.merge_patch(obj2);