You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I consider this out of scope for Files. Since it only requires a few lines in application code, I don't see a big benefit to implement (& maintain) such an implementation in the framework itself. I also don't want to tie Files too much to one way of parsing JSON, since people use many different libraries and techniques to do so.
Note: This will require
Codable
from Swift 3.2/4, which is why I'm not submitting a PR for this yet.This is a proposal for adding convenience methods to use the
Codable
protocol, to allow reading aFile
directly to a decoded object type.Example JSON
Decodable
convenience:Example JSON
Decodable
call site:The text was updated successfully, but these errors were encountered: