Andrew Grande created NIFI-1923:
-----------------------------------

             Summary: AttributesToJson should support regex of Attributes List
                 Key: NIFI-1923
                 URL: https://issues.apache.org/jira/browse/NIFI-1923
             Project: Apache NiFi
          Issue Type: Improvement
          Components: Extensions
    Affects Versions: 0.6.1
            Reporter: Andrew Grande


Today, the Attributes List supports _only_ a comma-separated list of attributes 
to include in the output JSON. This is not flexible enough, the alternative is 
to strip every other attribute and 'convert all', which requires more work and 
may not be possible if some need to be preserved.

*Proposal:* Attributes List must be a regex which matches the attributes to be 
included in the resulting JSON. E.g. I have lined up my data to include 
attributes like below:
{code}
{
  "delimited.header.column.2" : "Assignment",
  "delimited.header.column.3" : "Organization Name",
  "delimited.header.column.1" : "Registry",
  "delimited.header.column.4" : "Organization Address"
}
{code}

The challenge is I have to list *delimited.header.column.1*..N explicitly, 
every property name. I may not even know how many there will be for a more 
dynamic flow.

As a user I should be able to say *delimited.header.column\.** or any 
arbitrarily complex regex for a more dynamic conversion.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to