Python - unknown command `JSON.SET`

Hi Experts,

When I am trying to run the below command in python 3.8
r.execute_command(‘JSON.SET’,request_data[‘userName’], ‘.’, json.dumps(str(mydoc)))

then I am getting below error
redis.exceptions.ResponseError: unknown command JSON.SET,

I am learning python, I am not sure about the error.

Hi there,

The JSON.SET command is provided by RedisJSON, a Redis module. You’ll need this module running on your Redis server for this command to work.

The easiest way to get up and running with RedisJSON is with docker: Docker Hub