def output_error_json(self, message):
error = {<EOL>'<STR_LIT:result>': '<STR_LIT:error>',<EOL>'<STR_LIT:error>': [message]<EOL>}<EOL>self.write(json.dumps(error))<EOL>
Output a JSON error message to the response stream