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

Daniel Stieglitz commented on NIFI-11197:
-----------------------------------------

[~exceptionfactory]  I know you previously mentioned there could be a great 
deal of reuse from JsonTreeReader but I am having a hard time seeing that as 
the objects which JsonTreeReader uses such as

 
{code:java}
AbstractJsonRowRecordReader
JsonRecordSource{code}
both have Jackson's JsonFactory as an assigned static final class variable and 
AbstractJsonRowRecordReader also has a static final class variable for 
Jackson's ObjectMapper. Those are the points where I would have used Jackson's 
YamlFactory and YamlMapper.  Please advise if there is a better way of doing 
this or do I need to basically duplicate the JSON code files but using Jackson 
Yaml objects. Thanks!

 

> 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