JSON.MGET
JSON.MGET key [key ...] path
Return the values at path from multiple key arguments
keyis key to parse. Returns null for nonexistent keys.
pathis JSONPath to specify. Default is root $. Returns null for nonexistent paths.
JSON.MGET returns an array of bulk string replies specified as the JSON serialization of the value at each key's path. For more information about replies, see Redis serialization protocol specification.
path from multiple key argumentsCreate two JSON documents.
redis> JSON.SET doc1 $ '{"a":1, "b": 2, "nested": {"a": 3}, "c": null}'
OK
redis> JSON.SET doc2 $ '{"a":4, "b": 5, "nested": {"a": 6}, "c": null}'
OKGet values from all arguments in the documents.
redis> JSON.MGET doc1 doc2 $..a
1) "[1,3]"
2) "[4,6]"
© 2006–2022 Salvatore Sanfilippo
Licensed under the Creative Commons Attribution-ShareAlike License 4.0.
https://redis.io/commands/json.mget/