RedisJSON Cheatsheet

CommandPurposeSyntax
Return the value at path in JSON serialized formJSON.GET <key>
Sets the JSON value at path in keyJSON.SET <key> <path> <json> [NX | XX]
Returns the values at path from multiple keyJSON.MGET <key> [key ...] <path>
Report the type of JSON value at path .JSON.TYPE <key> [path]
Increments the number value stored at path by numberJSON.NUMINCRBY <key> <path> <number>
Multiplies the number value stored at path by numberJSON.NUMMULTBY <key> <path> <number>
Append the json-string value(s) the string at pathJSON.STRAPPEND <key> [path] <json-string>
Append the json value(s) into the array at path after the last element in itJSON.ARRAPPEND <key> <path> <json> [json ...]
Report the length of the JSON String at path in keyJSON.STRLEN <key> [path]
Report the length of the JSON Array at path in keyJSON.ARRLEN <key> [path]
Insert the json value(s) into the array at path before the index (shifts to the right)JSON.ARRINSERT <key> <path> <index> <json> [json ...]
Search for the first occurrence of a scalar JSON value in an arrayJSON.ARRINDEX <key> <path> <json-scalar> [start [stop]]
Remove and return element from the index in the arrayJSON.ARRPOP <key> [path [index]]
Trim an array so that it contains only the specified inclusive range of elementsJSON.ARRTRIM <key> <path> <start> <stop>
Return the keys in the object that's referenced by pathJSON.OBJKEYS <key> [path]
Report the number of keys in the JSON Object at path in keyJSON.OBJLEN <key> [path]
Report informationJSON.DEBUG <subcommand & arguments>
Return the JSON in key in Redis Serialization Protocol (RESP)JSON.RESP <key> [path]
An Alias for JSON.DELJSON.DEL <key> [path]