# JSON.TYPE Report the type of JSON value at `path` [Examples](#examples) ## Required arguments
key is key to parse.
## Optional arguments
path is JSONPath to specify. Default is root `$`. Returns null if the `key` or `path` do not exist.
## Return JSON.TYPE returns an array of string replies for each path, specified as the value's type. For more information about replies, see [Redis serialization protocol specification](https://redis.io/docs/latest/develop/reference/protocol-spec). ## Examples redis> JSON.SET doc $ '{"a":2, "nested": {"a": true}, "foo": "bar"}' OK redis> JSON.TYPE doc $..foo 1) "string" redis> JSON.TYPE doc $..a 1) "integer" 2) "boolean" redis> JSON.TYPE doc $..dummy (empty array) ## See also [`JSON.SET`](https://redis.io/docs/latestcommands/json.set/) | [`JSON.ARRLEN`](https://redis.io/docs/latestcommands/json.arrlen/) ## Related topics * [RedisJSON](https://redis.io/docs/latest/develop/data-types/json/) * [Index and search JSON documents](https://redis.io/docs/latest/develop/interact/search-and-query/indexing/)