private static PListValue loadBrackets(Map json, String key) {
    Object brackets = json.get(key);
    if (!(brackets instanceof ArrayList)) {
      return null;
    }
    List<PListValue> pairs = new ArrayList<>();
    for (Object bracket : (ArrayList)brackets) {
      if (bracket instanceof ArrayList && ((ArrayList<?>)bracket).size() == 2) {
        pairs.add(array(string(((ArrayList<?>)bracket).get(0).toString()), string(((ArrayList<?>)bracket).get(1).toString())));
      }
    }
    return array(pairs);
  }
private static PListValue loadBrackets(Map json, String key)