Json

JSON.GET

Get a single value from a JSON document.

Arguments

keybodystrrequired

The key of the json entry.

pathsbody*List[str]required

One or more paths to retrieve from the JSON document. $ is the root.

Response

List[TValue | null]required

The value at the specified path or null if the path does not exist.

Example
value = redis.json.get("key", "$.path.to.somewhere")
Loading search…