Skip to content

Conversation

@a-TODO-rov
Copy link
Contributor

This PR implements raw return types for JSON commands
See #3431

Copy link
Contributor

@ggivo ggivo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

If the team agrees with the approach, I am good to go!

Comment on lines +175 to +186
CommandArgs<K, V> args = new CommandArgs<>(codec).addKey(key);

if (jsonPath != null) {
if (index != -1) {
// OPTIONAL as per API
args.add(jsonPath.toString());
args.add(index);
} else if (!jsonPath.isRootPath()) {
// OPTIONAL as per API
args.add(jsonPath.toString());
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(nit) : Repeats the code in the overloaded method. We can extract it in a helper method to avoid code duplication & eventually getting methods out of sync

Comment on lines +243 to +257
CommandArgs<K, V> args = new CommandArgs<>(codec).addKey(key);

if (options != null) {
// OPTIONAL as per API
options.build(args);
}

if (jsonPaths != null) {
// OPTIONAL as per API
for (JsonPath jsonPath : jsonPaths) {
if (jsonPath != null) {
args.add(jsonPath.toString());
}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(nit) : Repeats the code in the overloaded method. We can extract it in a helper method to avoid code duplication & eventually getting methods out of sync

@a-TODO-rov a-TODO-rov merged commit b0eb6d9 into main Oct 23, 2025
13 of 26 checks passed
@a-TODO-rov a-TODO-rov deleted the json-raw branch October 23, 2025 08:40
@ggivo ggivo added the type: feature A new feature label Oct 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: feature A new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RedisJSON support should work out of the box without requiring Jackson

3 participants