The Http Serializer middleware lets you define serialization mechanisms based on the current content negotiation.