> ## 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_* 포맷 설정

> type_json_* 생성 그룹에 대한 ClickHouse 포맷 설정입니다.

export const SettingsInfoBlock = ({type, default_value, changeable_without_restart}) => {
  return <div className="not-prose" style={{
    display: "flex",
    flexWrap: "wrap",
    alignItems: "baseline",
    columnGap: "0.5rem",
    rowGap: "0.125rem",
    margin: "0.375rem 0",
    fontSize: "0.8125rem",
    lineHeight: "1.125rem"
  }}>
      <div style={{
    fontWeight: 600,
    opacity: 0.72
  }}>유형</div>
      <div style={{
    overflowWrap: "anywhere"
  }}>{type}</div>
      <div style={{
    fontWeight: 600,
    opacity: 0.72,
    marginInlineStart: "0.5rem"
  }}>기본값</div>
      <div style={{
    overflowWrap: "anywhere"
  }}>{default_value}</div>
      {changeable_without_restart && <div style={{
    fontWeight: 600,
    opacity: 0.72,
    marginInlineStart: "0.5rem"
  }}>
          재시작 없이 변경 가능
        </div>}
      {changeable_without_restart && <div style={{
    overflowWrap: "anywhere"
  }}>
          {changeable_without_restart}
        </div>}
    </div>;
};

이 설정은 [source](https://github.com/ClickHouse/ClickHouse/blob/master/src/Core/FormatFactorySettings.h)에서 자동으로 생성됩니다.

<div id="type_json_allow_duplicated_key_with_literal_and_nested_object">
  ## type\_json\_allow\_duplicated\_key\_with\_literal\_and\_nested\_object
</div>

<SettingsInfoBlock type="Bool" default_value="1" />

활성화하면 일부 키가 중복되더라도 그중 하나가 중첩된 객체인 `{"a" : 42, "a" : {"b" : 42}}`와 같은 JSON을 파싱할 수 있습니다.

<div id="type_json_skip_duplicated_paths">
  ## type\_json\_skip\_duplicated\_paths
</div>

<SettingsInfoBlock type="Bool" default_value="0" />

활성화하면 JSON 객체를 JSON 타입으로 파싱할 때 중복된 경로는 무시되며, 예외를 발생시키는 대신 첫 번째 경로만 삽입됩니다.

<div id="type_json_skip_invalid_typed_paths">
  ## type\_json\_skip\_invalid\_typed\_paths
</div>

<SettingsInfoBlock type="Bool" default_value="0" />

활성화하면, 타입이 지정된 경로가 있는 JSON 타입 컬럼에서 선언된 타입으로 변환할 수 없는 값을 가진 필드는 오류를 발생시키는 대신 건너뜁니다. 건너뛴 필드는 누락된 것으로 처리되며, 타입이 지정된 경로 정의에 따라 기본값 또는 NULL 값을 사용합니다.

이 설정은 특정 경로에 타입이 선언된 JSON 타입 컬럼(예: JSON(a Int64, b String))에만 적용됩니다. 일반 타입이 지정된 컬럼에 삽입할 때 사용하는 JSONEachRow와 같은 일반적인 JSON 입력 형식에는 적용되지 않습니다.

가능한 값:

* 0 — 비활성화(타입 불일치 시 오류 발생)
* 1 — 활성화(타입 불일치 시 필드 건너뜀)

<div id="type_json_use_partial_match_to_skip_paths_by_regexp">
  ## type\_json\_use\_partial\_match\_to\_skip\_paths\_by\_regexp
</div>

<SettingsInfoBlock type="Bool" default_value="1" />

활성화하면 JSON 객체를 JSON 타입으로 파싱할 때 SKIP REGEXP로 지정한 정규식이 경로를 건너뛰려면 부분 일치하면 됩니다. 비활성화하면 전체 일치가 필요합니다.
