# JSON commands

```json metadata
{
  "schema_version": 2,
  "title": "JSON commands",
  "description": "Lists JSON commands and provides links to the command reference pages.",
  "categories": ["docs","operate","stack"],
  "tableOfContents": {"sections":[]}

,
  "codeExamples": []
}
```


The following table lists JSON commands. See the command links for more information about each command's syntax, arguments, and examples.

| Command | Redis<br />Software | Redis<br />Cloud | Description |
|:--------|:----------------------|:-----------------|:------|
| [JSON.ARRAPPEND](https://redis.io/docs/latest/commands/json.arrappend) | <span title="Supported">&#x2705; Supported</span><br /><span><br /></span> | <span title="Supported"><nobr>&#x2705; Flexible & Annual</nobr></span><br /><span title="Supported">&#x2705; Free & Fixed</nobr></span> | Appends an element to a JSON array. |
| [JSON.ARRINDEX](https://redis.io/docs/latest/commands/json.arrindex) | <span title="Supported">&#x2705; Supported</span><br /><span><br /></span> | <span title="Supported">&#x2705; Flexible & Annual</span><br /><span title="Supported">&#x2705; Free & Fixed</nobr></span> | Returns the index of a value's first occurrence in a JSON array. |
| [JSON.ARRINSERT](https://redis.io/docs/latest/commands/json.arrinsert) | <span title="Supported">&#x2705; Supported</span><br /><span><br /></span> | <span title="Supported">&#x2705; Flexible & Annual</span><br /><span title="Supported">&#x2705; Free & Fixed</nobr></span> | Inserts JSON values into a JSON array before the given index. |
| [JSON.ARRLEN](https://redis.io/docs/latest/commands/json.arrlen) | <span title="Supported">&#x2705; Supported</span><br /><span><br /></span> | <span title="Supported">&#x2705; Flexible & Annual</span><br /><span title="Supported">&#x2705; Free & Fixed</nobr></span> | Returns the length of a JSON array. |
| [JSON.ARRPOP](https://redis.io/docs/latest/commands/json.arrpop) | <span title="Supported">&#x2705; Supported</span><br /><span><br /></span> | <span title="Supported">&#x2705; Flexible & Annual</span><br /><span title="Supported">&#x2705; Free & Fixed</nobr></span> | Removes and returns an element located at the index in the JSON array. |
| [JSON.ARRTRIM](https://redis.io/docs/latest/commands/json.arrtrim) | <span title="Supported">&#x2705; Supported</span><br /><span><br /></span> | <span title="Supported">&#x2705; Flexible & Annual</span><br /><span title="Supported">&#x2705; Free & Fixed</nobr></span> | Trims a JSON array so that it contains only the specified inclusive range of elements. |
| [JSON.CLEAR](https://redis.io/docs/latest/commands/json.clear) | <span title="Supported">&#x2705; Supported</span><br /><span><br /></span> | <span title="Supported">&#x2705; Flexible & Annual</span><br /><span title="Supported">&#x2705; Free & Fixed</nobr></span> | Clears container values (arrays/objects) and sets numeric values to 0. |
| [JSON.DEBUG](https://redis.io/docs/latest/commands/json.debug) | <span title="Supported">&#x2705; Supported</span><br /><span><br /></span> | <span title="Supported">&#x2705; Flexible & Annual</span><br /><span title="Supported">&#x2705; Free & Fixed</nobr></span> | Debugging container command. |
| [JSON.DEBUG HELP](https://redis.io/docs/latest/commands/json.debug-help) | <span title="Supported">&#x2705; Supported</span><br /><span><br /></span> | <span title="Supported">&#x2705; Flexible & Annual</span><br /><span title="Supported">&#x2705; Free & Fixed</nobr></span> | Returns helpful information about the [JSON.DEBUG](https://redis.io/docs/latest/commands/json.debug) command. |
| [JSON.DEBUG MEMORY](https://redis.io/docs/latest/commands/json.debug-memory) | <span title="Supported">&#x2705; Supported</span><br /><span><br /></span> | <span title="Supported">&#x2705; Flexible & Annual</span><br /><span title="Supported">&#x2705; Free & Fixed</nobr></span> | Reports a JSON element's memory usage in bytes. |
| [JSON.DEL](https://redis.io/docs/latest/commands/json.del) | <span title="Supported">&#x2705; Supported</span><br /><span><br /></span> | <span title="Supported">&#x2705; Flexible & Annual</span><br /><span title="Supported">&#x2705; Free & Fixed</nobr></span> | Removes a JSON element. |
| [JSON.FORGET](https://redis.io/docs/latest/commands/json.forget) | <span title="Supported">&#x2705; Supported</span><br /><span><br /></span> | <span title="Supported">&#x2705; Flexible & Annual</span><br /><span title="Supported">&#x2705; Free & Fixed</nobr></span> | Removes a JSON element, the same as [JSON.DEL](https://redis.io/docs/latest/commands/json.del). |
| [JSON.GET](https://redis.io/docs/latest/commands/json.get) | <span title="Supported">&#x2705; Supported</span><br /><span><br /></span> | <span title="Supported">&#x2705; Flexible & Annual</span><br /><span title="Supported">&#x2705; Free & Fixed</nobr></span> | Returns the value of an element in JSON-serialized form. |
| [JSON.MGET](https://redis.io/docs/latest/commands/json.mget) | <span title="Supported">&#x2705; Supported</span><br /><span><br /></span> | <span title="Supported">&#x2705; Flexible & Annual</span><br /><span title="Supported">&#x2705; Free & Fixed</nobr></span> | Returns the values of multiple elements. |
| [JSON.MERGE](https://redis.io/docs/latest/commands/json.merge) | <span title="Supported">&#x2705; Supported</span><br /><span><br /></span> | <span title="Supported">&#x2705; Flexible & Annual</span><br /><span title="Supported">&#x2705; Free & Fixed</nobr></span> | Merge a given JSON value into matching paths. |
| [JSON.NUMINCRBY](https://redis.io/docs/latest/commands/json.numincrby) | <span title="Supported">&#x2705; Supported</span><br /><span><br /></span> | <span title="Supported">&#x2705; Flexible & Annual</span><br /><span title="Supported">&#x2705; Free & Fixed</nobr></span> | Increments the number stored at path by the specified number. |
| [JSON.NUMMULTBY](https://redis.io/docs/latest/commands/json.nummultby) | <span title="Supported">&#x2705; Supported</span><br /><span><br /></span> | <span title="Supported">&#x2705; Flexible & Annual</span><br /><span title="Supported">&#x2705; Free & Fixed</nobr></span> | Multiplies the number stored at path by the specified number. (deprecated as of RedisJSON v2.0) |
| [JSON.OBJKEYS](https://redis.io/docs/latest/commands/json.objkeys) | <span title="Supported">&#x2705; Supported</span><br /><span><br /></span> | <span title="Supported">&#x2705; Flexible & Annual</span><br /><span title="Supported">&#x2705; Free & Fixed</nobr></span> | Returns the keys contained in the specified JSON object. |
| [JSON.OBJLEN](https://redis.io/docs/latest/commands/json.objlen) | <span title="Supported">&#x2705; Supported</span><br /><span><br /></span> | <span title="Supported">&#x2705; Flexible & Annual</span><br /><span title="Supported">&#x2705; Free & Fixed</nobr></span> | Returns the number of keys in the specified JSON object. |
| [JSON.RESP](https://redis.io/docs/latest/commands/json.resp) | <span title="Supported">&#x2705; Supported</span><br /><span><br /></span> | <span title="Supported">&#x2705; Flexible & Annual</span><br /><span title="Supported">&#x2705; Free & Fixed</nobr></span> | Returns a JSON element in [Redis Serialization Protocol (RESP)](https://redis.io/docs/latest/develop/reference/protocol-spec) format. |
| [JSON.SET](https://redis.io/docs/latest/commands/json.set) | <span title="Supported">&#x2705; Supported</span><br /><span><br /></span> | <span title="Supported">&#x2705; Flexible & Annual</span><br /><span title="Supported">&#x2705; Free & Fixed</nobr></span> | Sets the value of a JSON element. |
| [JSON.STRAPPEND](https://redis.io/docs/latest/commands/json.strappend) | <span title="Supported">&#x2705; Supported</span><br /><span><br /></span> | <span title="Supported">&#x2705; Flexible & Annual</span><br /><span title="Supported">&#x2705; Free & Fixed</nobr></span> | Appends the given string to the specified key's existing strings. |
| [JSON.STRLEN](https://redis.io/docs/latest/commands/json.strlen) | <span title="Supported">&#x2705; Supported</span><br /><span><br /></span> | <span title="Supported">&#x2705; Flexible & Annual</span><br /><span title="Supported">&#x2705; Free & Fixed</nobr></span> | Returns the length of a string. |
| [JSON.TOGGLE](https://redis.io/docs/latest/commands/json.toggle) | <span title="Supported">&#x2705; Supported</span><br /><span><br /></span> | <span title="Supported">&#x2705; Flexible & Annual</span><br /><span title="Supported">&#x2705; Free & Fixed</nobr></span> | If the boolean is `true`, changes it to `false`. If the boolean is `false`, changes it to `true`. |
| [JSON.TYPE](https://redis.io/docs/latest/commands/json.type) | <span title="Supported">&#x2705; Supported</span><br /><span><br /></span> | <span title="Supported">&#x2705; Flexible & Annual</span><br /><span title="Supported">&#x2705; Free & Fixed</nobr></span> | Returns a JSON element's type. |

