[ 
https://issues.apache.org/jira/browse/NIFI-10109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mark Payne updated NIFI-10109:
------------------------------
    Fix Version/s: 1.17.0
       Resolution: Fixed
           Status: Resolved  (was: Patch Available)

> Preserve Field Order in JsonTreeReader Map Records
> --------------------------------------------------
>
>                 Key: NIFI-10109
>                 URL: https://issues.apache.org/jira/browse/NIFI-10109
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Extensions
>            Reporter: David Handermann
>            Assignee: David Handermann
>            Priority: Minor
>             Fix For: 1.17.0
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> The current implementation of the {{JsonTreeReader}} reads JSON Object nodes 
> into a {{HashMap}} for representation as a {{{}MapRecord{}}}. Schemas 
> generated from JSON Objects retain field order, but the internal {{Map}} 
> representation does not preserve the field order due to the non-deterministic 
> use of {{{}HashMap{}}}. Changing the internal representation to a 
> {{LinkedHashMap}} would preserve field order for methods such as 
> {{{}Record.toMap(){}}}.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to