AttributesToJSON 2025.10.2.19

번들

org.apache.nifi | nifi-standard-nar

설명

Generates a JSON representation of the input FlowFile Attributes. The resulting JSON can be written to either a new Attribute ‘JSONAttributes’ or written to the FlowFile as content. Attributes which contain nested JSON objects can either be handled as JSON or as escaped JSON depending on the strategy chosen.

태그

attributes, flowfile, json

입력 요구 사항

REQUIRED

민감한 동적 속성 지원

false

속성

속성

설명

Attributes List

결과 JSON 에 포함할 특성을 쉼표로 구분한 목록입니다. 이 값을 비워두면 기존의 모든 특성이 포함됩니다. 이 특성 목록은 대/소문자를 구분합니다. 목록에 지정된 특성을 찾을 수 없는 경우 빈 문자열 또는 NULL 값과 함께 결과 JSON 으로 전송됩니다.

Destination

JSON 값을 새 flowfile 특성 ‘JSONAttributes’로 쓸지, 아니면 flowfile 내용에 쓸지 제어합니다. 플로우파일 내용에 쓰면 기존 플로우파일 내용을 덮어쓰게 됩니다.

Include Core Attributes

Determines if the FlowFile org.apache.nifi.flowfile.attributes. CoreAttributes which are contained in every FlowFile should be included in the final JSON value generated.

JSON Handling Strategy

중첩된 JSON 을 포함하는 특성을 처리하는 데 사용할 전략입니다.

Null Value

true이면 기존에 선택되지 않은 특성은 결과 JSON 에서 NULL 이 됩니다. false이면 빈 문자열이 JSON 에 배치됩니다.

Pretty Print

출력물에 가독성이 우수한 인쇄 형식을 적용합니다.

attributes-to-json-regex

플로우 파일 특성에 대해 평가하여 일치하는 특성을 선택할 정규식입니다. 이 속성은 Attribute List 속성과 함께 사용할 수 있습니다.

관계

이름

설명

실패

특성을 JSON 으로 변환하지 못함

성공

특성이 JSON 으로 변환됨

Writes 특성

이름

설명

JSONAttributes

특성의 JSON 표현