code: public function apply(EndpointInvoker $endpointInvoker, $result)
      {
          return json_encode(
              $this->codec->slumber($result),
              JSON_PRETTY_PRINT
          );
      }
docs: @param EndpointInvoker $endpointInvoker
  @param                 $result
  
  @return mixed