json_query with jsonpath::result_options::path | jsonpath::result_options::value ? #434
-
Hello, is it possible to do a json_query so that the returned result would be a list of pairs with the path of the node and the value of it? |
Beta Was this translation helpful? Give feedback.
Answered by
jsonconsorg
Jun 14, 2023
Replies: 1 comment 1 reply
-
Yes. Have a look at the json_query example that takes a callback with two parameters, the path and the value. You can collect all the path value pairs from the callback. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
harsszegi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes. Have a look at the json_query example that takes a callback with two parameters, the path and the value. You can collect all the path value pairs from the callback.