DOC-6508 JSON page and examples for Rust#3098
Merged
andy-stark-redis merged 3 commits intomainfrom Apr 27, 2026
Merged
Conversation
Contributor
Contributor
🛡️ Jit Security Scan Results✅ No security findings were detected in this PR
Security scan by Jit
|
Contributor
Author
|
Thanks @dwdougherty ! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rust doesn't support Redis search yet, but a JSON example is very useful to have, so this is example is a bit different to the JSON examples for the other clients. Also added Rust examples for the JSON data type pages and added the command to API mappings for the Rust JSON commands.
Note
Low Risk
Low risk documentation/data updates that don’t affect runtime behavior; main risk is incorrect example output or API signature mismatches in the new command-to-client mappings.
Overview
Adds a new Rust client docs page,
content/develop/clients/rust/json.md, documenting a simple end-to-end RedisJSON workflow (create, read nested paths, update fields, append to arrays) for both sync and asyncredis-rs.Introduces new runnable Rust example sources for
rust_home_jsonand for thejson_tutorialused by the JSON data type pages (local_examples/rust-{sync,async}/dt-json.rs), covering common JSON string/number/array/object operations and JSONPath queries.Extends multiple
data/command-api-mapping/JSON.*.jsonfiles to includeredis_rs_syncandredis_rs_asyncAPI signatures/params/returns for RedisJSON commands (e.g.,JSON.GET,JSON.SET, array ops, object ops, numeric ops).Reviewed by Cursor Bugbot for commit d5e7287. Bugbot is set up for automated code reviews on this repo. Configure here.