
Define `res.json()` method to send json data in response.