Allow an optional .json extension on cgimap methods