<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_json(self, obj, status=HttpStatusCodes.HTTP_200):
 """Helper method to set a JSON response. Args: obj (:obj:`object`):
 JSON serializable object status (:obj:`str`, optional):
 Status code of the response """

        obj = json.dumps(obj, sort_keys=True, default=lambda x: str(x))
        self.set_status(status)
        self.set_header(HttpResponseHeaders.CONTENT_TYPE, 'application/json')
        self.set_content(obj)