RedisJSON is built into Redis 8, so this repository now matters only for older Redis servers and source builds
RedisJSON - a JSON data type for Redis
At a glance
- What is it?
- A Rust module that adds a native JSON data type to Redis, with JSONPath selection and typed atomic operations. From Redis 8 the data type ships inside Redis, standalone releases have stopped, and the repository's last tags are maintenance releases from April 2026.
- Who is it for?
- Read this repository if you run Redis older than 8, need the module built from source, or want to know what the JSON type does under the hood. If you are on Redis 8 or newer, skip the module install entirely, because the data type is already there.
- Can I use it commercially?
- Check first. The repository uses a licence we do not classify automatically, so read its LICENSE file before any commercial use.
- Is it still maintained?
- Yes. The repository last received commits 7 days ago.
- What is it written in?
- Mainly Rust, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 27, 2026, and from our analysis. They are not legal advice.
Star history
- RedisJSON/RedisJSON3,940 ★ · -7
| Repository | 2026-10-08 | 2026-11-27 |
|---|---|---|
| RedisJSON/RedisJSON | 3.9k | 3.9k |
-7 Stars in the last 50 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
From Redis 8 the JSON type is part of Redis and standalone releases have stopped
The README opens with a note that changes how the whole repository should be read. Starting with Redis 8, the JSON data structure is integral to Redis, and you do not need to install this module separately. The project no longer releases standalone versions of RedisJSON, and the note points to the main Redis repository at github.com/redis/redis.
The release list matches. The three newest releases are v2.8.19, v2.6.24 and v2.4.19, all published on 28 April 2026, which makes them patch releases of three older lines and not a new feature line. The repository is not archived, and its last push was on 25 October 2026, so work continues on the code.
The practical split is simple. On Redis 8 or newer, use the built-in type. On an older Redis, this module is how the type got there, and those maintenance lines are what you would pin. A second note in the README adds that 32 bit systems are not supported.
Documents are stored as a tree of binary data, not as a string of JSON text
RedisJSON implements ECMA-404, the JSON Data Interchange Standard, as a native data type. It allows storing, updating and fetching JSON values from Redis keys, which the README calls documents.
The storage claim is the interesting one. Documents are stored as binary data in a tree structure, allowing fast access to sub-elements. That is the difference from keeping JSON text in a Redis string: with text you read and rewrite the whole value to change one field, while a tree can address a sub-element directly. The README states the benefit as fast access and gives no timings, so nothing in it lets you compare against strings or hashes with numbers.
The Cargo.toml names the pieces behind this. The workspace has two members, json_path and redis_json. It depends on an ijson fork at github.com/RedisJSON/ijson pinned to a specific revision, plus serde, serde_json and bson. The module is built on the redis-module crate from the RedisLabsModules organization at tag v2.1.3.
JSONPath selection and typed atomic operations are the two commands-level features
Two features in the README concern how you work with a document. JSONPath syntax selects elements inside documents, and typed atomic operations exist for all JSON value types. Atomic here means an operation on one document runs as a unit inside Redis, so concurrent clients do not interleave halfway through a change.
The repository has a commands.json file at the top level and a json_path directory that is its own workspace member, which is where path handling lives. The README does not list command names or syntax, and it sends you to the documentation at redis.io/docs/latest/develop/data-types/json/.
A second feature, secondary index support, applies only when combined with RediSearch. On its own, RedisJSON gives you storage and path access, and querying by field value across many documents needs the search module alongside it. The README says nothing further about index definitions.
Pinned dependencies in Cargo.toml show where builds are fragile
The comments in Cargo.toml read like a list of past build breaks. serde_json is held to a range from 1.0.0 up to below 1.0.147, because the version range after that switched float formatting from ryu to zmij. The pin keeps exponent formatting stable, for example e308 and not e+308, and avoids test churn when someone runs cargo update.
The home crate is pinned to exactly 0.5.11 for compatibility with Rust 1.87 on Alpine Linux, because home 0.5.12 and later require Rust 1.88. The redis-module dependency enables the feature min-redis-compatibility-version-7-4, which indicates the current code targets Redis 7.4 as its lowest supported server.
The practical lesson for anyone building the module is that a plain cargo update can change the number format your documents print. If your application compares JSON text byte for byte, those pins are the reason it stays stable, and removing them is a risk the maintainers have already documented.
The release profile sets debug to 1, so release binaries carry line information for stack traces.
Building from source runs through make bootstrap and make build
The README gives no build steps, but the Makefile does. Its help text lists bootstrap and build first:
make bootstrap
make buildThe bootstrap target runs .install/install_script.sh, which installs operating system packages, a uv virtual environment with pip, and Rust. A comment warns that bootstrap cannot be chained with other targets in a single invocation, because it short-circuits the Readies include. Run make bootstrap first, then make build separately.
The build target takes options. NIGHTLY=1 uses the nightly toolchain, DEBUG=1 builds the debug variant, and SAN selects an LLVM sanitizer of address, memory, leak or thread type. VALGRIND or VG set to 1 builds for testing with Valgrind. A clean target removes binary files, and ALL=1 removes the binary directories too.
The repository carries more than twenty Dockerfile variants at the top level, one each for distributions such as alma, rocky, bookworm, bullseye, jammy, noble and alpine. That is a sign that the module is built per operating system and not distributed as one binary.
The reference Dockerfile loads rejson.so and redisearch.so together into Redis 6.2.7
The main Dockerfile builds the module on debian bullseye-slim and then copies the result into an image based on redisfab/redis 6.2.7 for x64 bullseye. The built file is rejson.so, copied into /usr/lib/redis/modules/. A second stage takes redisearch.so from the redisfab/redisearch master image and puts it in the same directory.
The container then starts redis-server with two --loadmodule arguments, one for each file. That layout shows the intended pairing: the JSON type and the search module loaded side by side, which is how the secondary index feature in the README is reached.
The Dockerfile is a Redis 6.2.7 image while the Cargo.toml enables a Redis 7.4 compatibility feature, so the two do not describe the same server version. Treat the Dockerfile as an example of the loading mechanism and not as the supported server version, and check the documentation for the real compatibility range.
The README badges also link to the redis-stack-server image on Docker Hub, the packaged distribution that includes the module.
Three licence options from Redis 8, and only two before it
GitHub's detection shows the licence as NOASSERTION because the terms are custom. The README states them. Starting with Redis 8, RedisJSON is licensed under your choice of the Redis Source Available License 2.0, the Server Side Public License v1, or the GNU Affero General Public License version 3. Prior versions remain subject to the first two only.
This matters if you embed or redistribute the module. The older maintenance lines, 2.8.19, 2.6.24 and 2.4.19, fall under RSALv2 and SSPLv1, and neither is an OSI approved open source licence. Only the Redis 8 terms add AGPLv3 as an option. The full terms are in the license folder of the repository.
Contributors face their own condition. By contributing code in any form, including a pull request, a code fragment or a patch sent by email, they agree to release it under the Redis Software Grant and Contributor License Agreement. CONTRIBUTING.md explains it and SECURITY.md covers vulnerability reports. The top level also holds AGENTS.md and CLAUDE.md files for coding assistants.
Editorial conclusion
Read this repository if you run Redis older than 8, need the module built from source, or want to know what the JSON type does under the hood. If you are on Redis 8 or newer, skip the module install entirely, because the data type is already there. Before depending on it, check the licence: from Redis 8 it is your choice of RSALv2, SSPLv1 or AGPLv3, and earlier versions allow only the first two.
Frequently asked questions
What is Redis JSON?
RedisJSON is a Redis module that implements the ECMA-404 JSON standard as a native data type. It stores, updates and fetches JSON values from Redis keys, with JSONPath selection and typed atomic operations.
How to install RedisJSON?
Starting with Redis 8 the JSON data structure is integral to Redis, so you do not need to install this module separately. For older servers, the Makefile builds the module with make bootstrap followed by make build.
How to use RedisJSON?
Read the documentation at redis.io/docs/latest/develop/data-types/json/. The README lists JSONPath syntax for selecting elements and typed atomic operations for all JSON value types.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/redisjson-redisjson)Star history chart for your README
[](https://hysenlabs.com/projects/redisjson-redisjson)Was this useful?