> ## Documentation Index
> Fetch the complete documentation index at: https://docs.eloquentfiltering.com/llms.txt
> Use this file to discover all available pages before exploring further.

# JSON Not Contains

export const type_0 = "$jsonNotContains"

## Definition

```php theme={null}
Filter::field('options->languages', [FilterType::JSON_NOT_CONTAINS]);
```

<Note>
  [See JSON Path Wildcards](/v2/digging-deeper/json-path-wildcards)
</Note>

## Array/Object Structure

<ParamField body="type" type="string" required>
  <code>
    {type_0}
  </code>
</ParamField>

<ParamField body="target" type="string" required />

<ParamField body="value" type="string|int|float" required />

## Example

```php theme={null}
$filter = [
    'type'   => '$jsonNotContains',
    'target' => 'options->languages',
    'value'  => 'en',
];
```

```php theme={null}
$sql = User::filter([$filter])->toRawSql();
```

### SQL

```sql theme={null}
select * from "users"
where not json_contains("users"."options", '\"en\"', '$."languages"')
```

## Modifiers

None available.
