import Foundation extension JSONDecoder { func decode(from data: Data) throws -> T where T: Decodable { try self.decode(T.self, from: data) } }