[ 
https://issues.apache.org/jira/browse/NIFI-11197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17759741#comment-17759741
 ] 

David Handermann commented on NIFI-11197:
-----------------------------------------

Thanks for looking into those details [~dstiegli1]. You are correct that the 
presence of those static values makes the classes more difficult to use in 
their current form. The JsonRecordSource is small enough that duplicating some 
aspects would not necessarily be a problem, but the AbstractJsonRowRecordReader 
has a lot more that seems like it could be reused. Making it reusable would 
require some refactoring, perhaps a new shared abstract class, from which a 
JSON and YAML implementations could extend.

> Add YAML Record Reader
> ----------------------
>
>                 Key: NIFI-11197
>                 URL: https://issues.apache.org/jira/browse/NIFI-11197
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Extensions
>    Affects Versions: 1.20.0
>            Reporter: macdoor615
>            Assignee: Daniel Stieglitz
>            Priority: Major
>
> The yaml format is basically equivalent to json. When used as a configuration 
> file, it is much more convenient than json. It can have comments and the file 
> is shorter.
> More and more systems adopt yaml format. Now we developed a conversion tool 
> from yaml to json with the ExecuteGroovyScript processor.
> It is recommended to add a processor that can convert between yaml and json



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to