code: def jsonapi(f):
      
      @wraps(f)
      def wrapper(*args, **kwargs):
          rv = f(*args, **kwargs)
          return make_json_response(rv)
      return wrapper
docs: Declare the view as a JSON API method
  
          This converts view return value into a :cls:JsonResponse.
  
          The following return types are supported:
              - tuple: a tuple of (response, status, headers)
              - any other object is converted to JSON