class JSONObject extends JSONElement {

    public JSONObject accumulate(String key, Object additionalValue) throws JSONException {
        requireNonNull(key, "Null key.");
        if (!obj.has(key)) {
            return this;
        }
        Object existing = get(key);
        if (existing instanceof JSONArray) {
            ((JSONArray) existing).put(additionalValue);
            put(key, (JSONArray) existing);
        } else {
            JSONArray a = new JSONArray();
            a.put(existing);
            a.put(additionalValue);
            put(key, a);
        }
        return  this;
    }

    public  JSONObject(String string);
    public  JSONObject(Map<String, Object> map);
    public  JSONObject();
      JSONObject(JsonElement jsonElement);

}