Fully managed and integrated with Google Cloud, Azure, and AWS.
Build the fastest, most reliable GenAI apps with our advanced vector database.
Self-managed software with enterprise-grade compliance and reliability.
Synchronize data in near-real time to make data fast—without writing code.
In-memory database for caching & streaming.
JSON.OBJKEYS key [path]
@json
,
@read
,
@slow
,
Return the keys in the object that's referenced by path
key
is key to parse. Returns null
for nonexistent keys.
path
is JSONPath to specify. Default is root $
. Returns null
for nonexistant path.
JSON.OBJKEYS returns an array of array replies for each path, an array of the key names in the object as a bulk string reply, or nil
if the matching JSON value is not an object.
For more information about replies, see Redis serialization protocol specification.
redis> JSON.SET doc $ '{"a":[3], "nested": {"a": {"b":2, "c": 1}}}'
OK
redis> JSON.OBJKEYS doc $..a
1) (nil)
2) 1) "b"
2) "c"
JSON.ARRINDEX
| JSON.ARRINSERT