Convert MAP variable to string

I’m using azurerm_template_deployment to deploy a resource. This works fine if I don’t use the TAG parameter in the template. Apparently azurerm_template_deployment passes all variables for a template on as string. How can I convert a TF variable of type MAPS (containing resource tags) as a string to be consumed by an ARM template?