[swift-evolution] [Proposal] Foundation Swift Encoders
Itai Ferber
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:
> <https://github.com/apple/swift-evolution/pull/640>
>
> Could the `JSONEncoder.OutputFormatting.prettyPrinted` case include
> the **stable ordering** of keys?
>
> -- Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170316/61c7e755/attachment.html>
More information about the swift-evolution
mailing list