Serialization depth limit and recursive serialization

I commented out the Item reference in Card’s serializable class and the error and warnings went away. however, I kind of need that to be saved. is there any way for me to have two serializable classes save references to each other WITHOUT the threat of infinite recursion?