Make ConvertFrom-StringData
and Import-PowerShellDataFile
return *ordered* hashtables, analogous to how ConvertFrom-Json -AsHashtable
now works in v7.3+
#19070
Labels
Issue-Enhancement
the issue is more of a feature request than a bug
Needs-Triage
The issue is new and needs to be triaged by a work group.
Resolution-No Activity
Issue has had no activity for 6 months or more
WG-Cmdlets
general cmdlet issues
Summary of the new feature / enhancement
See also:
System.Management.Automation.OrderedHashtable
#19073Since 7.3,
ConvertFrom-Json -AsHashtable
now (fortunately) returns a hashtable in which the definition order of the entries is respected, courtesy of the new,[hashtable]
-derivedSystem.Management.Automation.OrderedHashtable
type - see #18524 (comment)The
[hashtable]
-outputtingConvertFrom-StringData
andImport-PowerShellDataFile
cmdlets could benefit from the same improvement - as well as any other standard cmdlets that currently return[hashtable]
instances.Proposed technical implementation details (optional)
No response
The text was updated successfully, but these errors were encountered: