This is the General Availability release of RedisJSON 2.0.
Headlines
RedisJSON is a [high-performance JSON document store](https://redis.com/blog/redisjson-public-preview-performance-benchmarking/) that allows developers to build modern applications. It stores and processes JSON in-memory, supporting millions of operations per second with sub-millisecond response times. With the combination of `RediSearch`, native indexing, querying, and full-text search of JSON documents allows developers to create secondary indexes, and query data at lightning speed.
Indexing JSON documents
Using [RediSearch](https://redisearch.io), it is now possible to [index, query, and search JSON documents](https://oss.redis.com/redisearch/master/Indexing_JSON/), gaining full-text search capabilities and document retrieving based on their content.
To do so, you must install both modules, `RedisJSON` and `RediSearch` on the same database.
Support of JSON Path
The commands [support JSONPath](https://oss.redis.com/redisjson/2.0/path/#jsonpath-support-redisjson-v2) as specified in the [original specifications](https://goessner.net/articles/JsonPath).
The legacy path syntax is still supported.
Commands operate on multiple paths.
A `JSONPath` query may resolve to several paths. Every [command](https://oss.redis.com/redisjson/commands/) supports multiple paths and applies the operation to all the encountered paths.
Notice that the output of the commands evolved to provide multiple results according to the number of paths impacted.
Details
Enhancements
- Support of Multipath - (473)(477) (491(531) (519)(511)(503) (497) (516)
- Added generic json path implementation (336)
- Error messages prefixed with ERR or WRONGTYPE (525)
- Performance: Discard of method `to_value` (490)
- Move from next_string to next_str (426)
- Initial RedisJSON commands.json file (464)
- Docker with RediSearch revisited (488)
Bug fixes
- JSON.DEL count deleted null value (515)
- Avoid crash in ARRTRIM (499)
- Docker/Debian: moved from Buster to Bullseye (458)
- Support RDB Short Read in RedisJSON (a.k.a diskless-load) (397)
- Avoid path clone when not needed (398)
- Add testGetWithBracketNotation (416)
Notes:
This is the first GA version of 2.0. The version inside Redis will be 2.0.4 in semantic versioning.
_Since the version of a module in Redis is numeric, we could not add a GA flag._