I'm novice programmer and I've been working on movie app and couldn't figure out why Alamofire returns my single parameters from JSON response but doesn't do it in for loop. Here is the code. This function is inside class.

```
class oneMovie: ObservableObject{

    @Published var Movie = Movies()

    private let API : String
    var url : String

    init(ID: String){
        self.API = "API"
        self.url = "url.to.somewhere\(ID)"
        MovieGetter(URL: url)
    }

func MovieGetter(URL: String){

        AF.request(URL).responseJSON { (response) in

            let json = JSON(response.value!)

            if let name         = json["name"].string,
               let description  = json["description"].string
            {
                ///These are stored fine in structure
                self.Movie.name              = name
                self.Movie.description       = description
            }

            for(_, subJson) in json["actors"]{
                if let actorName = subJson["name"].string {

                    ///I can print Actors names but I get nil in actors array in Movie
                    ///structure when I use it

                    print(actorName) //Prints fine
                    self.Movie.actors?.append(actorName)
            }
        }
    }

```

This is structure

```
struct Movies {

   var name : String?
   var description : String?
   var actors : [String]?

}

```