How to serialize an ArrayList<CustomObject>?

I mean… the error is right there. You didn’t register that class as being serializable.