# JSON.GET

> Get a single value from a JSON document.

## Arguments

<ParamField body="key" type="string" required>
  The key of the json entry.
</ParamField>

<ParamField body="options">
    <Expandable>
        <ParamField body="indent" type="string">
            Sets the indentation string for nested levels.
        </ParamField>

        <ParamField body="newline" type="string">
            Sets the string that's printed at the end of each line.
        </ParamField>

        <ParamField body="space" type="string">
           Sets the string that is put between a key and a value.
        </ParamField>

    </Expandable>

</ParamField>

<ParamField body="paths" type="...string[]" required>
  One or more paths to retrieve from the JSON document. `$` is the root.
</ParamField>

## Response

<ResponseField type="(TValue | null)[]" required>
  The value at the specified path or `null` if the path does not exist.
</ResponseField>

<RequestExample>
```ts Example
const value = await redis.json.get("key", "$.path.to.somewhere");
```

```ts With Options
const value = await redis.json.get("key", {
    indent: "  ",
    newline: "\n",
    space: " ",
}, "$.path.to.somewhere");
```

</RequestExample>
