title: Having issue in Volley [Android]
body: <p>I'm trying to retrieve data from a third-party API but I'm having this issue down below:</p>
  <pre><code> Process: com.main.instareeldownloader, PID: 8483
  com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
      at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:225)
  </code></pre>
  <p>This is where I'm trying to retrieve data.</p>
  <pre><code>StringRequest request = new StringRequest(URL, response -&gt; {
          GsonBuilder gsonBuilder = new GsonBuilder();
          Gson gson = gsonBuilder.create();
  
          MainUrl mainUrl = gson.fromJson(response, MainUrl.class);
          reeelUrl = mainUrl.getItems();
  
          Log.e(&quot;Data&quot;,reeelUrl);
          uri2 = Uri.parse(reeelUrl);
          videoView.setMediaController(mediaController);
          videoView.setVideoURI(uri2);
          videoView.requestFocus();
          videoView.start();
      }, error -&gt; Toast.makeText(getContext(), &quot;Not able to Fetch.&quot;, Toast.LENGTH_SHORT).show());
  
      RequestQueue queue = Volley.newRequestQueue(getContext());
      queue.add(request);
  </code></pre>
  <p>This is my MainUrl Model</p>
  <pre><code>String items;
  //private MainReel items;
  
  public MainUrl(String items) {
      this.items = items;
  }
  
  public String getItems() {
      return items;
  }
  
  public void setItems(String items) {
      this.items = items;
  }
  
  @Override
  public String toString() {
      return &quot;MainUrl{&quot; +
              &quot;items='&quot; + items + '\'' +
              '}';
  }
  </code></pre>
  <p><a href="https://www.instagram.com/reel/CNsBB9zBmdBnxgz0QETH07jVLIhOvtS9ar0UlE0/?__a=1" rel="nofollow noreferrer">JSON format</a></p>
  <p>From the JSON try to retrieve this:</p>
  <p>items -&gt; video_versions -&gt; url</p>
  <p>I'm confused why an error is occurring for.</p>