remove deprecated res.json usage