I'm not sure that this is possible with Gson.  I'm looking at http://jackson.codehaus.org/1.6.5/javadoc/org/codehaus/jackson/map/SerializationConfig.Feature.html
and it has an option to make this specific to maps, but I don't see anything in Gson.

However, I'm not too keen on switching over to Jackson just for this