docs: public static JSONArray copy(final JSONArray src, final boolean deep) {
          final JSONArray dest = new JSONArray();
          final int len = src.length();
          for (int i = 0; i < len; ++i) {
              final Object value = src.opt(i);
              if (deep) {
                  if (value instanceof JSONObject) {
                      dest.put(copy((JSONObject) value));
                  } else if (value instanceof JSONArray) {
                      dest.put(copy((JSONArray) value));
                  } else {
                      dest.put(value);
                  }
              } else {
                  dest.put(value);
              }
          }
          return dest;
      }