Sending the response in JSON format