-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
json::contains usage to find a path #1727
Copy link
Copy link
Closed
Labels
confirmedkind: bugrelease item: 🐛 bug fixsolution: proposed fixa fix for the issue has been proposed and waits for confirmationa fix for the issue has been proposed and waits for confirmation
Milestone
Description
Metadata
Metadata
Assignees
Labels
confirmedkind: bugrelease item: 🐛 bug fixsolution: proposed fixa fix for the issue has been proposed and waits for confirmationa fix for the issue has been proposed and waits for confirmation
I want to test whether a path exists in a json file. For example, "/root/settings/logging".
exists1is false andexists2is true.I expected both of these to be true. Is this a bug or is this expected behaviour?
UPDATE: There are two
containsfunctions. One which takes an rvalue reference to aKeyTand one which takes a reference to a json_pointer. Both do different things. This seems inconsistent to me. If Istd::movejPtr it works but I don't want to move the pointer.g++ (Ubuntu 8.3.0-6ubuntu1~18.10.1) 8.3.0
v3.7.0