JsonMessage and derivatives store their type.