bluehalo / nifi-nar-bundles

Apache License 2.0
13 stars 0 forks source link

Migrate AttributesToJsonContent processor #70

Closed rstjohn closed 5 years ago

rstjohn commented 5 years ago

This processor is used to create/override content from a CSV of attribute keys. Apache NiFi contains a processor entitled AttributesToJson, but this always creates a new JSON object with key/value both strings. As such, if the attribute is already JSON, the result from the builtin processor would add a stringified JSON as the value, eg.

attr1 = {"a":"a"}

would become

{
   "attr1": "{\"a\":\"a\"}"
}

instead of

{
   "attr": {"a": "a"}

}

This ticket will simply migrate an existing processor into corp nars.