You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assuming that my json file is the following, I would like to collect all values that match with a regular expression using json_pointer. How can I get all values (integers) in the path /array/a/*?
I have used flatten() so far, that gives the "keys". But I don't know if I can query the json object to return an array of values that "match" a json path.
Activity
nlohmann commentedon Sep 14, 2017
What about
nlohmann commentedon Sep 14, 2017
No, but you must admit that this is a very specific usecase... And I think you could clean up the code above and use some
<algorithm>magic.nlohmann commentedon Sep 14, 2017
I don't know, maybe something like
std::copy_if.