Add named custom marshalling for JSON and XML.