docs: def response_json(self, status, response, content_type='application/json', encoding='utf-8', headers=None, jsonp=None):
          """
          Send a JSON response
          """
  
          encoder = JSONEncoder(
              check_circular=self.app.validate_output,
              allow_nan=False,
              sort_keys=True,
              indent=2 if self.app.pretty_output else None,
              separators=(',', ': ') if self.app.pretty_output else (',', ':')
          )
          content = encoder.encode(response)
          if jsonp:
              content_list = [jsonp.encode(encoding), b'(', content.encode(encoding), b');']
          else:
              content_list = [content.encode(encoding)]
          return self.response(status, content_type, content_list, headers=headers)