title: How to resolve org.json.JSONException: No value for index
body: <p>I create a wallpaper apps and I found this error </p>
  
  <pre><code>org.json.JSONException: No value for index
  </code></pre>
  
  <p>and the apps can't start</p>
  
  <p>Here's my json</p>
  
  <pre><code>]
  {
      "wallpaper_index": "1",
      "wallpaper_name": "Wallpaper1",
      "wallpaper_site_name": "Wallpaper",
      "wallpaper_site_url": "http://google.com",
      "wallpaper_url": "https://i.imgur.com/Z0UGroX.jpg"
    },
    {
      "wallpaper_index": "2",
      "wallpaper_name": "Wallpaper2",
      "wallpaper_site_name": "Wallpaper",
      "wallpaper_site_url": "http://google.com",
      "wallpaper_url": "https://i.imgur.com/nSx1uN8.jpg"
    },
    {
      "wallpaper_index": "3",
      "wallpaper_name": "Wallpaper2",
      "wallpaper_site_name": "Wallpaper",
      "wallpaper_site_url": "http://google.com",
      "wallpaper_url": "https://i.imgur.com/ezhbnQR.jpg"
    },
  ]
  </code></pre>
  
  <p>How to fix it ?
  Thanks in advance</p>