David Handermann created NIFI-10109:
---------------------------------------
Summary: 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
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)