<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def outputjson(self, obj):
 """ Serialize `obj` with JSON and output to the client """

        self.header('Content-Type', 'application/json')
        self.outputdata(json.dumps(obj).encode('ascii'))