Re: [swift-corelibs-dev] JSONDecoder has too few opportunities. need an enhancement.

2017-11-10 Thread Vladimir Kushelkov via swift-corelibs-dev
:00 Vladimir Kushelkov via swift-corelibs-dev mailto:swift-corelibs-dev@swift.org>>: 1. Sometimes it is contently to be able to decode a struct or an object from a Foundation object (either NSArray or NSDictionary) that produce a valid JSON. For example, if I use a 3d party library that pro

[swift-corelibs-dev] JSONDecoder has too few opportunities. need an enhancement.

2017-11-09 Thread Vladimir Kushelkov via swift-corelibs-dev
1. Sometimes it is contently to be able to decode a struct or an object from a Foundation object (either NSArray or NSDictionary) that produce a valid JSON. For example, if I use a 3d party library that provides NSDictionary to me. Due to JSONDecoder decodes only from Data, in the first place I h