title: How to parse JSON using swift 4
body: <p>I am confusing to getting detail of fruit </p>
  
  <pre><code>{
    "fruits": [
      {
        "id": "1",
        "image": "https://cdn1.medicalnewstoday.com/content/images/headlines/271/271157/bananas.jpg",
        "name": "Banana"
      },
      {
        "id": "2",
        "image": "http://soappotions.com/wp-content/uploads/2017/10/orange.jpg",
        "title": "Orange"
      }
    ]
  }
  </code></pre>
  
  <p>Want to parse JSON using "Decodable"</p>
  
  <pre><code>struct Fruits: Decodable {
      let Fruits: [fruit]
  }
  struct fruit: Decodable {
      let id: Int?
      let image: String?
      let name: String?
  }
  
  let url = URL(string: "https://www.JSONData.com/fruits")
          URLSession.shared.dataTask(with: url!) { (data, response, error) in
  
              guard let data = data else { return }
  
              do{
                  let fruits = try JSONDecoder().decode(Fruits.self, from: data)
                  print(Fruits)
  
              }catch {
                  print("Parse Error")
              }
  </code></pre>
  
  <p>also can you please suggest me cocoapod library for fastly download images</p>