Getting an error on decoding JSON Expected to decode Array<Any> but found a dictionary instead : Getting an error on decoding JSON in swift 4.2, if you like to help me out.
Expected to decode Array<Any> but found a dictionary instead. Tried Various search and code change but useless. 
Failed to decode. TypeMismatch <br> 
Many Thanks!!!

Model:

    public struct NewsSource: Equatable, Decodable {
    
    public let id: String?
    public let name: String?
    public let sourceDescription: String?
    public let url: URL?
    
    enum CodingKeys: String, CodingKey {
        case id
        case name
        case sourceDescription = "description"
        case url
     
    }
    
    public init(id: String,
                name: String,
                sourceDescription: String,
                url: URL,
                category: NewsCategory,
                language: NewsLanguage,
                country: NewsCountry) {
        self.id = id
        self.name = name
        self.sourceDescription = sourceDescription
        self.url = url
    } }

Function:

     
    func fetchJSON() {

    let urlString = "https://newsapi.org/v2/sources?apiKey=176a4fe177c4461ba3b8fbd1774dbdea"
        
    guard let url = URL(string: urlString) else { return }
        URLSession.shared.dataTask(with: url) { (data, _, err) in
            DispatchQueue.main.async {
                if let err = err {
                    print("Failed to get data from url:", err)
                    return
                }
                
                guard let data = data else { return }
                print(data)
                do {
                    // link in description for video on JSONDecoder
                    let decoder = JSONDecoder()
                    // Swift 4.1
                    decoder.keyDecodingStrategy = .convertFromSnakeCase
                    
                    self.Sources = try decoder.decode([NewsSource].self, from: data)
                    self.tableView.reloadData()
                    
                } catch let jsonErr {
                    print("Failed to decode:", jsonErr)
                }
            }
            }.resume()
    }
