def response_json(self, status, response, content_type='<STR_LIT:application/json>', encoding='<STR_LIT:utf-8>', headers=None, jsonp=None):
encoder = JSONEncoder(<EOL>check_circular=self.app.validate_output,<EOL>allow_nan=False,<EOL>sort_keys=True,<EOL>indent=<NUM_LIT:2> if self.app.pretty_output else None,<EOL>separators=('<STR_LIT:U+002C>', '<STR_LIT>') if self.app.pretty_output else ('<STR_LIT:U+002C>', '<STR_LIT::>')<EOL>)<EOL>content = encoder.encode(response)<EOL>if jsonp:<EOL><INDENT>content_list = [jsonp.encode(encoding), b'<STR_LIT:(>', content.encode(encoding), b'<STR_LIT>']<EOL><DEDENT>else:<EOL><INDENT>content_list = [content.encode(encoding)]<EOL><DEDENT>return self.response(status, content_type, content_list, headers=headers)<EOL>
Send a JSON response