Yes. The RedisJSON module provides JSON support for Redis. RedisJSON enables you store, update, and load JSON values in a Redis database, similar to any other Redis data type.
The code snippet below shows how to use RedisJSON with raw Redis commands from Python with redis-py:
import redis data = { 'dog': { 'scientific-name' : 'Canis familiaris' } } r = redis.Redis() r.json().set('doc', '$', data) doc = r.json().get('doc', '$') dog = r.json().get('doc', '$.dog') scientific_name = r.json().get('doc', '$..scientific-name')
Dragonfly is fully compatible with the Redis ecosystem and requires no code changes to implement.