The composite types can be serialized to JSON without issues or needing any additional precautions, and the resulting code is simpler.