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

プロパティ

プロパティ

説明

属性リスト

結果の JSON に含まれる属性のカンマ区切りリスト。この値を空にすると、既存の属性がすべて含まれます。この属性リストは大文字と小文字を区別します。リストで指定された属性が見つからない場合は、空の文字列または NULL 値で結果の JSON に出力されます。

目的地

JSON の値を新しいフローファイル属性 'JSONAttributes' として書き込むか、フローファイルのコンテンツに書き込むかを制御します。フローファイルコンテンツへの書き込みは、既存のフローファイルコンテンツを上書きします。

コア属性を含む

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 ハンドリング戦略

ネストされた JSON を含む属性の処理に使用する戦略。

Null値

true の場合、既存の選択されていない属性は、結果の JSON で NULL になります。falseの場合、空の文字列が JSON に設置

きれいな印刷

出力にきれいな印刷形式を適用します。

attributes-to-json-regex

一致する属性を選択するために、フローファイルの属性に対して評価される正規表現。このプロパティは、属性リストプロパティと組み合わせて使用することができます。

リレーションシップ

名前

説明

failure

JSON への属性変換に失敗しました。

success

JSON への属性の変換に成功しました。

属性の書き込み

名前

説明

JSONAttributes

JSON 属性表現