Json
JSON.GET
Get a single value from a JSON document.
const value = await redis.json.get("key", "$.path.to.somewhere");
Arguments
key
string
requiredThe key of the json entry.
options
paths
...string[]
default: "$"One or more paths to retrieve from the JSON document.
Response
The value at the specified path or null
if the path does not exist.
Was this page helpful?
const value = await redis.json.get("key", "$.path.to.somewhere");