That's a good suggestion; thanks. I actually started down that path
but wasn't sure how it would work in the context of many such classes.
For example, if I have 50 different classes like this, can I do what
you describe for a parent class, and then will GSON pick up the
inherited custom serialization from the superclass? (This is probably
a basic Java question; I admit I know C++ templates much better than
Java generics.)
Dave