title: How can I solve this error :Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path $
body: <p>How can I solve this problem?</p>
  <pre><code>class InformationActivity : AppCompatActivity() {
      private val _tag = SplashActivity::class.java.simpleName
  
      override fun onCreate(savedInstanceState: Bundle?) {
          super.onCreate(savedInstanceState)
          setContentView(R.layout.activity_information)
  
  
          val uniqueId = SharedPreference.getidInfo(this)
  
          val token = SharedPreference.getUserInfo(this)
  
  
          Client.retrofitService.profile(uniqueId, token)
              .enqueue(object : Callback&lt;LoginResponse&gt; {
                  override fun onFailure(call: Call&lt;LoginResponse&gt;, t: Throwable) {
  
                  }
  
                  override fun onResponse(
                      call: Call&lt;LoginResponse&gt;,
                      response: Response&lt;LoginResponse&gt;
                  ) {
                      if (response?.isSuccessful == false) { val er = Gson().fromJson(response.errorBody()?.charStream(), ErrorResponse::class.java)
                          Log.d(_tag, &quot;${er.code}:${er.message}&quot;)
                          if (er.code == 60203) {
                              Toast.makeText(this@InformationActivity, &quot;&quot;, Toast.LENGTH_SHORT).show()
                          }
                      } else if (response?.isSuccessful == true) {
                          Glide.with(applicationContext).asBitmap().load(&quot;https://s3.amazonaws.com/appsdeveloperblog/micky.gif&quot;).into(imageView)
                          Toast.makeText(this@InformationActivity, &quot;&quot;, Toast.LENGTH_LONG).show()
  
                          val file=File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS),&quot;micky.gif&quot;)
                          var fileName=&quot;micky.gif&quot;
  
                          val token = SharedPreference.getUserInfo(applicationContext)
                          val uniqueId= SharedPreference.getidInfo(applicationContext)
  
                          var requestBody: RequestBody = RequestBody.create(MediaType.parse(&quot;image/*&quot;), file)
                          val body: MultipartBody.Part = MultipartBody.Part.createFormData(&quot;profile&quot;,fileName,requestBody)
  
                              if (uniqueId != null) {
                                  Client.retrofitService.updateProfile(token,uniqueId,body)
                                      .enqueue(object : Callback&lt;List&lt;LoginResponse&gt;&gt; {
                                          override fun onFailure(
                                              call: Call&lt;List&lt;LoginResponse&gt;&gt;,
                                              t: Throwable) { Log.d(&quot;&quot;, t.message) }
  
                                          override fun onResponse(
                                              call: Call&lt;List&lt;LoginResponse&gt;&gt;,
                                              response: Response&lt;List&lt;LoginResponse&gt;&gt;) { if (response?.isSuccessful)
                                          { Toast.makeText(this@InformationActivity, &quot;File Uploaded Successfully...&quot;, Toast.LENGTH_LONG).show()
                                                  Log.d(&quot;&quot;, &quot;&quot; + response?.body().toString())
                                              } else {
                                                  Toast.makeText(this@InformationActivity, &quot;Some error occurred...&quot;, Toast.LENGTH_LONG).show()
                                              }
                                          } }) }
                          }
                      }
              }) }
  }
  
  </code></pre>
  <pre><code>interface API {
      @Headers(&quot;Content-Type: application/json&quot;, &quot;Authorization:token:String&quot;)
    
      @Multipart
      @PUT(&quot;/user/profile/{userId}&quot;)
      fun updateProfile(@Header(&quot;Authorization&quot;) token: String?, @Path(&quot;userId&quot;) userID: String, @Part file: MultipartBody.Part): Call&lt;List&lt;Loginresponse&gt;&gt;
  
  }
  </code></pre>
  <pre><code>object Client {
      var retrofitService: API
  
      init {
          val interceptor = HttpLoggingInterceptor()
          interceptor.level = HttpLoggingInterceptor.Level.BODY
          val logger: OkHttpClient = OkHttpClient.Builder().addInterceptor(interceptor).readTimeout(20, TimeUnit.SECONDS).writeTimeout(20, TimeUnit.SECONDS).build()
  
          val retrofit = Retrofit.Builder()
              .baseUrl(&quot;myurl&quot;)
              .addConverterFactory(GsonConverterFactory.create())
              .client(logger)
              .build()
  
          retrofitService = retrofit.create(API::class.java)
      }
  }
  </code></pre>
  <pre><code>    @SerializedName(&quot;uniqueId&quot;)
      val user:String?=null
  
      @SerializedName(&quot;nickname&quot;)
  
      val nickname: String?=null
  
      @SerializedName(&quot;birth&quot;)
  
      val birth: String?=null
  
      @SerializedName(&quot;profileImage&quot;)
  
      val profileImage: String?=null
  
      @SerializedName(&quot;profileThumbnail&quot;)
  
      val profileThumbnails: String?=null
  
      @SerializedName(&quot;gender&quot;)
  
      val gender: Int?=null
  
      @SerializedName(&quot;token&quot;)
      val token: String? = null
  }
  
     
  
  </code></pre>