Json

JSON.TYPE

Report the type of JSON value at `path`.

Arguments

keybodystringrequired

The key of the json entry.

pathbodystringrequired

The path of the value. $ is the root.

Response

(string | null)[]required

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

Example
const myType = await redis.json.type("key", "$.path.to.value");
Loading search…