remove deprecated res.json usage
closes #2516
no need to make call for guests
removed qs fix indent