write dictionary types in response messages