class ListSerializer
        implements ObjectSerializer {
    public static final ListSerializer instance = new ListSerializer();

    private ListSerializer() {
    }

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

    public void write(JSONSerializer serializer, Object object, Object fieldName, Type fieldType) throws IOException {
        JSONWriter out = serializer.out.raw;

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

        List<?> list = (List<?>) object;
        out.write(list);
    }
}

        JSONWriter out = serializer.out.raw;

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

        List<?> list = (List<?>) object;
        out.write(list);
    
<no_super_class>