Oh it is. Still not the right place to configure gson.
Consider a separate web-related applications module and a persistence-related applications module which are imported by the main applications module.