code: public static JSONArray queryJsonArray(final String sql, final List<Object> paramList, final Connection connection,
                                             final String tableName, final boolean isDebug) throws SQLException, JSONException, RepositoryException {
          final JSONObject jsonObject = queryJson(sql, paramList, connection, false, tableName, isDebug);
  
          return jsonObject.getJSONArray(Keys.RESULTS);
      }
docs: queryJsonArray.
  
  @param sql        sql
  @param paramList  paramList
  @param connection connection
  @param tableName  tableName
  @param isDebug    the specified debug flag
  @return JSONArray
  @throws SQLException        SQLException
  @throws JSONException       JSONException
  @throws RepositoryException repositoryException