Become a member
Sign in
Rachad Khoudi
Rachad Khoudi

Rachad Khoudi

7 Following
5 Followers
  • Profile

  • Highlights

Highlighted by Rachad Khoudi

See more

From Use of Codable with JSONEncoder and JSONDecoder in Swift 4 by Ashish Kakkad

…
let jsonDecoder = JSONDecoder()
let upMovie = try jsonDecoder.decode(Movie.self, from: jsonData)
print("Name : \(upMovie.name)")
print("Rating : \(upMovie.rating)")
}
catch {
}