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

# type_json_* format settings

> ClickHouse format settings in the type_json_* generated group.

These settings are autogenerated from [source](https://github.com/ClickHouse/ClickHouse/blob/master/src/Core/FormatFactorySettings.h).

## type\_json\_allow\_duplicated\_key\_with\_literal\_and\_nested\_object

Type

Bool

Default

1

When enabled, JSONs like `{"a" : 42, "a" : {"b" : 42}}` where some key is duplicated but one of them is a nested object are allowed to be parsed.

## type\_json\_skip\_duplicate\_key\_detection

Type

Bool

Default

0

When enabled, parsing a JSON object into the `JSON` type skips the per-object duplicate-key detection, which speeds up parsing of objects with many keys. Enable it only when objects are known to have unique keys. The guarantee is the user's: if a duplicated key is actually present, the value is not corrupted (paths that collide are still rejected or skipped as duplicates and the row is rolled back), but a duplicated key combining a literal and a nested object is no longer specially merged regardless of `type_json_allow_duplicated_key_with_literal_and_nested_object`.

## type\_json\_skip\_duplicated\_paths

Type

Bool

Default

0

When enabled, during parsing JSON object into JSON type duplicated paths will be ignored and only the first one will be inserted instead of an exception

## type\_json\_skip\_invalid\_typed\_paths

Type

Bool

Default

0

When enabled, fields with values that cannot be coerced to their declared type in JSON type columns with typed paths are skipped instead of throwing an error. Skipped fields are treated as missing and will use default/null values based on the typed path definition.

This setting only applies to JSON type columns (e.g., JSON(a Int64, b String)) where specific paths have declared types. It does not apply to regular JSON input formats like JSONEachRow when inserting into regular typed columns.

Possible values:

* 0 — Disable (throw error on type mismatch).
* 1 — Enable (skip field on type mismatch).

## type\_json\_skip\_null\_typed\_paths

Type

Bool

Default

0

When enabled, typed paths in JSON columns that have NULL values are treated as absent, matching the behavior of dynamic paths. This affects JSON serialization output, introspection functions like `JSONAllPaths`, `JSONHas`, `JSONExtractRaw`, `has`, and `empty`/`notEmpty` checks.

Possible values:

* 0 — Disable (typed paths are always present, even with NULL values).
* 1 — Enable (NULL typed paths are treated as absent).

## type\_json\_use\_partial\_match\_to\_skip\_paths\_by\_regexp

Type

Bool

Default

1

When enabled, during parsing JSON object into JSON type regular expressions specified using SKIP REGEXP will require partial match to skip a path. When disabled, full match will be required.
