[swift-evolution] [Proposal] Foundation Swift Encoders
iferber at apple.com
Thu Mar 16 16:10:36 CDT 2017
By stable ordering, you mean dictionaries with keys being output in the
order that they were encoded?
Potentially, but this would require additional work as neither Swift
dictionaries nor `NSMutableDictionary` support this (reasonable seeing
as dictionaries are by definition not sorted), and the current
implementation uses `JSONSerialization` as the concrete serializer.
Certainly not impossible, though.
On 16 Mar 2017, at 8:49, Ben Rimmington wrote:
> Could the `JSONEncoder.OutputFormatting.prettyPrinted` case include
> the **stable ordering** of keys?
> -- Ben
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution