class JSONObject extends JSONElement {

    public JSONObject increment(String key) throws JSONException {
        if (!has(key)) {
            put(key, 1);
        } else {
            Object n = get(key);
            if (!(n instanceof Number)) {
                throw new JSONException("");
            } else if (n instanceof Integer) {
                put(key, ((Integer) n) + 1);
            } else if (n instanceof Double) {
                put(key, ((Double) n) + 1);
            }
        }
        return this;
    }

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

}