code: public static List<Object> jsonArrayToList(JSONArray expected) throws JSONException {
          List<Object> jsonObjects = new ArrayList<Object>(expected.length());
          for (int i = 0; i < expected.length(); ++i) {
              jsonObjects.add(expected.get(i));
          }
          return jsonObjects;
      }
docs: Converts the given {@link JSONArray} to a list of {@link Object}s.
  
  @param expected the JSON array to convert
  @return the list of objects from the {@code expected} array
  @throws JSONException JSON parsing error