title: How to download image from JSON using the Swift 3 and Alamofire?
body: <p>How to download image from JSON using Alamofire and Swift 3? I am getting dictionary of data. See the following JSON response. I am able to print data in labels but I can't download the image. This is the response I am getting from the API.</p>
  
  <blockquote>
    <p>userJson userJson userJson userJson ["status": 1, "student": { "admission_date" = "14/06/2017";
        "admission_no" = 13538; "class_teacher" = "Caroline Forbes"; dob =<br>
        "04/05/2001"; email = "ranisagar.sivadas@gmail.com"; "father_name" =
        "SAGAR SIVADAS"; gender = Male; image =<br>
        "/system/images/86/j1f9DiJi_medium.jpg?1504593436"; "mother_name" = 
        "RANI R S"; name = "Abhijith Sagar"; phone = 9066260799; religion = 
        Hindu; "school_email" = "13538.861@demo.in"; "student_id" = 86; },<br>
        "message": Details fetched successfully.]</p>
  </blockquote>
  
  <p>This is my code. </p>
  
  <pre><code>func SetUpUIProfiledata() {
      APIManager.sharedInstance.getParentDataFromURL(){(userJson)-&gt; Void in
          let swiftyJsonVar = JSON(userJson)
          print("userJson userJson userJson userJson",userJson)
          print("swiftyJsonVar",swiftyJsonVar)
          let message = swiftyJsonVar["message"].rawString()
          let sudent = swiftyJsonVar["student"].rawString()!
          let jsonData = sudent.data(using: .utf8)!
          let dictionary = try? JSONSerialization.jsonObject(with: jsonData, options: []) as! Dictionary&lt;String, Any&gt;
          self.name_lbl.text = dictionary?["name"] as? String
          self.fatherName_lbl.text = dictionary?["father_name"] as? String
          self.motherName_lbl.text = dictionary?["mother_name"] as? String
          self.phone_lbl.text = dictionary?["phone"] as? String
          self.email_lbl.text = dictionary?["email"] as? String
          self.dob_lbl.text=dictionary?["dob"] as? String
          self.gender_lbl.text=dictionary?["gender"] as? String
          self.religion_lbl.text=dictionary?["religion"] as? String
          self.admissionDate_lbl.text=dictionary?["admission_date"] as? String
          self.admissionNum_lbl.text=dictionary?["admission_no"] as? String
          self.schoolMail_lbl.text=dictionary?["school_email"] as? String
          self.teacher_lbl.text=dictionary?["class_teacher"] as? String
      }
  }
  </code></pre>