code: public List<Action> listFromJSON(JSONArray in) throws JSONConverterException {
          List<Action> l = new ArrayList<>(in.size());
          for (Object o : in) {
              if (!(o instanceof JSONObject)) {
                  throw new JSONConverterException("Expected an array of JSONObject but got an array of " + o.getClass().getName());
              }
              l.add(fromJSON((JSONObject) o));
          }
          return l;
      }
docs: Convert a list of json-encoded actions.
  @param in the list to decode
  @return the action list. Might be empty
  @throws JSONConverterException if the conversion failed