I’m sorry, are you complaining about my use of Codable instead of more precisely referring to the JSON endcode/decode functionality based on it in Foundation, or are you honestly trying to say that said functionality was never intended to be a general purpose JSON solution? If it’s not actually intended to handle all JSON you should probably call it something else.
Jon > On Jun 22, 2017, at 9:42 PM, Greg Parker <gpar...@apple.com> wrote: > > >> On Jun 22, 2017, at 6:00 PM, Jon Shier via swift-users >> <swift-users@swift.org <mailto:swift-users@swift.org>> wrote: >> >> My main concern here is that, as Swift’s official JSON parsing method, >> Codable should be able to handle any JSON representation and use and it >> doesn’t. > > Is this true? Is Codable intended to be Swift's official JSON parsing system? > Is Codable intended to be a general-purpose JSON parsing system? > > My understanding was that Codable was designed to serialize Swift types, not > to be able to import arbitrary JSON text into Swift nor to interoperate with > every existing JSON API. > > > -- > Greg Parker gpar...@apple.com <mailto:gpar...@apple.com> Runtime > Wrangler > >
_______________________________________________ swift-users mailing list swift-users@swift.org https://lists.swift.org/mailman/listinfo/swift-users