class JSONLibDataFormatSerializer
        implements ObjectSerializer {
    public JSONLibDataFormatSerializer() {
    }

    @SuppressWarnings("deprecation")
    public void write(
            JSONSerializer serializer,
            Object object,
            Object fieldName,
            Type fieldType,
            int features
    ) throws IOException {<FILL_FUNCTION_BODY>}
}

        if (object == null) {
            serializer.out.writeNull();
            return;
        }

        Date date = (Date) object;

        JSONObject json = new JSONObject();
        json.put("date", date.getDate());
        json.put("day", date.getDay());
        json.put("hours", date.getHours());
        json.put("minutes", date.getMinutes());
        json.put("month", date.getMonth());
        json.put("seconds", date.getSeconds());
        json.put("time", date.getTime());
        json.put("timezoneOffset", date.getTimezoneOffset());
        json.put("year", date.getYear());

        serializer.write(json);
    
<no_super_class>