title: How to send Nested Array parameter using alamofire's Multipart form data
body: <p>How to send this parameter to multipart</p>
  
  <pre><code>    let dictionary = [
          "user" :
              [
                  "email" : "\(email!)",
                  "token" : "\(loginToken!)"
          ],
          "photo_data" :[
              "name" : "Toko Tokoan1",
              "avatar_photo" : photo,
              "background_photo" : photo,
              "phone" : "0222222222",
              "addresses" :[[
                  "address" : "Jalan Kita",
                  "provinceid" : 13,
                  "cityid" : 185,
                  "postal" : "45512"
                  ]],
              "banks" :[[
                  "bank_name" : "PT Bank BCA",
                  "account_number" : "292993122",
                  "account_name" : "Tukiyeum"
                  ]]
  
          ]
  
      ]
  </code></pre>
  
  <p>I tried this below code but I can't encode value (which in NSDic) to utf 8</p>
  
  <pre><code>        for (key, value) in current_user {
              if key == "avatar_photo" || key == "background_photo"{
              multipartFormData.appendBodyPart(fileURL: value.data(using: String.Encoding.utf8)!, name: key) // value error because its NSDic
              }else{
               multipartFormData.appendBodyPart(data: value.data(using: String.Encoding.utf8)!, name: value) // value error because its NSDic
              }
  
          }
  </code></pre>
  
  <p><code>value</code> in append body part cannot be use because it's NSDictionary not string. How the right way to put that parameter in multipartformdata?</p>