jackyyyyyssss commented on code in PR #2323:
URL: https://github.com/apache/kvrocks/pull/2323#discussion_r1609213102
##########
src/types/json.h:
##########
@@ -217,6 +217,42 @@ struct JsonValue {
return results;
}
+ StatusOr<std::vector<std::string>> GetBytes(std::string_view path,
JsonStorageFormat format,
+ int max_nesting_depth =
std::numeric_limits<int>::max()) const {
+ std::vector<std::string> results;
+ try {
+ jsoncons::jsonpath::json_query(value, path, [&](const std::string &
/*path*/, const jsoncons::json &origin) {
+ if (!origin.empty()) {
+ Status s;
Review Comment:
This function is used to traverse the internal structure of JSON and will
loop through the callback function multiple times inside
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]