does anyone know a nice way/library to serialize a sealed class instance and retain the information about which instance of the class it is? - it's not something that JSON is really equipped to handle without putting in an extra field, but I'm not sure how other serialization formats work