This would allow users to control how a certain type is serialized to JSON throughout their entire model.