[ https://issues.apache.org/jira/browse/NIFI-10109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17557126#comment-17557126 ]
ASF subversion and git services commented on NIFI-10109: -------------------------------------------------------- Commit 5febd47c72db79a0dd063b662ed8f23c2d9530be in nifi's branch refs/heads/main from David Handermann [ https://gitbox.apache.org/repos/asf?p=nifi.git;h=5febd47c72 ] NIFI-10109 Changed HashMap to LinkedHashMap in JsonTreeRowRecordReader (#6112) - Added unit test to confirm preservation of field ordering > 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 > Time Spent: 40m > 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)