title: Read a json file with gson library
body: <p>I have a json file formatted as the following:</p>
  
  <pre><code>[{
    'title':    'Java',
    'authors':  ['Auth', 'Name']
  },
  {
    'title':    'Java2',
    'authors':  ['Auth2', 'Name2']
  },
  {
    'title':    'Java3',
    'authors':  ['Auth3', 'Name3']
  }]
  </code></pre>
  
  <p>So i've tried using gson library to parse the file, with the following code:</p>
  
  <pre><code>JsonElement jelement = new JsonParser().parse(pathFile);
          JsonObject jObject = jelement.getAsJsonObject();
          JsonArray jOb = jObject.getAsJsonArray("");
          final String[] jObTE = new String[jOb.size()];
          for (int k=0; k&lt;jObTE.length; k++) {
              final JsonElement jCT = jOb.get(k);
              JsonObject jOTE = jCT.getAsJsonObject();
              JsonArray jContentTime = jOTE.getAsJsonArray("content_time");
              final String[] contentTime = new String[jContentTime.size()];
              for (int i=0; i&lt;contentTime.length; i++) {
                  final JsonElement jsonCT = jContentTime.get(i);
                  JsonObject jObjectTE = jsonCT.getAsJsonObject();
                  JsonArray jTE = jObjectTE.getAsJsonArray("");
                  final String[] contentTimeTE = new String[jTE.size()];
                  for (int j=0; j&lt;contentTimeTE.length; j++) {
                      final JsonElement jsonCTTE = jTE.get(j);
                      contentTime[j] = jsonCTTE.getAsString();
                  }
              }
          }
  </code></pre>
  
  <p>But, in doing so, i found this error: <code>java.lang.IllegalStateException: Not a JSON Object</code> at the second line.</p>