title: org.json.JSONException: A JSONObject text must begin with '{' at 1 [character 2 line 1]
body: <p>Iam parsing a json using org.json in java . My json list like:</p>
  
  <pre>
  [ {
  "id": "f187b01b145c4171b66d4a2ecabb8f44"
  },
  {
  "id": "a5e66b7462e24924a03e89f0619a2398"
  },
  {
  "id": "2fb3627360db4ab78a0b3f27527b1983"
  } ]
  </pre>
  
  <p>I fetch data from the java code :</p>
  
  <pre><code>JSONObject json = new JSONObject(response.getEntity(String.class));                                 
  Jobs[] obj = new Gson().fromJson(json.toString(), Jobs[].class);
  System.out.println(obj.toString());
  </code></pre>
  
  <p>But it gives an exception :</p>
  
  <pre><code>Exception in thread "main" org.json.JSONException: A JSONObject text must begin with '{' at 1 [character 2 line 1]
  at org.json.JSONTokener.syntaxError(JSONTokener.java:433)
  at org.json.JSONObject.&lt;init&gt;(JSONObject.java:197)
  at org.json.JSONObject.&lt;init&gt;(JSONObject.java:324)
  at br.usp.icmc.teste.ConnectionRestClient.getSaucelabsGetJobs(ConnectionRestClient.java:80)
  at br.usp.icmc.teste.TestePrincipal.main(TestePrincipal.java:9)
  </code></pre>
  
  <p>why it did not recognized as JSONArray ? Where am I wrong ?</p>