How to pass multiple environmental variables as an object?

The typical way one would pass environmental variables to a pod or deployment would be using the env {} block, however, that only supports a single env var. You then have to create another one for every variable you wish to pass. However, if I have a JSON object of key-value pairs that represent environmental variables, how would I pass that into the pod as a set of variables?

Is such a thing possible?

I believe that the best way of mapping multiple configuration values into deployments would be to create config map resource and reference that in the spec section of the deployment where you can use either the whole config_map or select individual values from it