title: expected begin_array but was begin_object at line 1 column 2 path $ retrofit
body: <p>I am working on a app in which i have to send a notification to a specific device but i am getting this error now i am searching for a solution<br>
  i am using rest api link <a href="https://fcm.googleapis.com/fcm/send" rel="nofollow noreferrer">https://fcm.googleapis.com/fcm/send</a>
  i have tried alot and seeking a better solution.</p>
  
  <p>//APi class Retrofit</p>
  
  <pre><code>public interface Api {
  
     @Headers({"Content-Type:application/json",
         "Authorization:key=SECRET_KEY"
  
         })
  
      @POST("fcm/send")
        Call&lt;List&lt;Score&gt;&gt; getValues(@Body Score score);
  
    }
  </code></pre>
  
  <p>// Gson Class</p>
  
  <p>// Score Class</p>
  
  <p>//</p>
  
  <pre><code>public class Score {
  
  public DataScore getData() {
      return data;
  }
  
  public void setData(DataScore data) {
      this.data = data;
  }
  
  public String getTo() {
      return to;
  }
  
  public void setTo(String to) {
      this.to = to;
  }
  
  @SerializedName("data")
  @Expose
  private DataScore data;
  @SerializedName("to")
  @Expose
  private String to;
  </code></pre>
  
  <p>}</p>
  
  <p>// DataScore</p>
  
  <pre><code>  class DataScore {
  
  @SerializedName("score")
  @Expose
  private String score;
  
  public String getScore() {
      return score;
  }
  
  public void setScore(String score) {
      this.score = score;
  }
  
  public String getTime() {
      return time;
  }
  
  public void setTime(String time) {
      this.time = time;
  }
  
  @SerializedName("time")
  @Expose
  private String time;
      }
  </code></pre>
  
  <p>// Main Class</p>
  
  <pre><code>  @Override
     protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      FirebaseMessaging.getInstance().setAutoInitEnabled(true);
  
      String token =FirebaseInstanceId.getInstance().getToken();
      String key=token;
      DataScore dataScore =new DataScore();
      dataScore.setScore("aaa");
      dataScore.setTime("aa");
  
      Score score=new Score();
      score.setData(dataScore);
      score.setTo(token);
  
  
  
      Retrofit retrofit =new Retrofit.Builder().baseUrl("https://fcm.googleapis.com/").addConverterFactory(GsonConverterFactory.create()).build();
  
      Api api= retrofit.create(Api.class);
  
      api.getValues(score).enqueue(new Callback&lt;List&lt;Score&gt;&gt;() {
          @Override
          public void onResponse(Call&lt;List&lt;Score&gt;&gt; call, Response&lt;List&lt;Score&gt;&gt; response) {
              if (response.isSuccessful()){
  
                  Toast.makeText(MainActivity.this, response.body().toString() +"Successfull", Toast.LENGTH_SHORT).show();
  
              }
  
              else
              {
                  Toast.makeText(MainActivity.this, response.message()+"FAiled",Toast.LENGTH_SHORT).show();
  
              }
          }
          @Override
          public void onFailure(Call&lt;List&lt;Score&gt;&gt; call, Throwable t) {
              Toast.makeText(MainActivity.this, t.getMessage() +"Failure", Toast.LENGTH_SHORT).show();
  
          }
      });
  
  }
  </code></pre>