code: def export_json(data, status, headers):
      
      dumped = json.dumps(data, ensure_ascii=False)
      resp = current_app.response_class(
          dumped, status=status, headers=headers,
          content_type='application/json; charset=utf-8')
      return resp
docs: Creates a JSON response
  
      JSON content is encoded by utf-8, not unicode escape.
  
      Args:
          data: any type object that can dump to json
          status (int): http status code
          headers (dict): http headers