original_string: protected function redirectJsonAction($url): ServiceResponse
      {
          if (is_array($url)) {
              $url = $this->prepareUrl($url);
          }
          $response = [
              'code' => 'success',
              'data' => [
                  'inDialog' => $this->request->is('dialog') && !$this->FrontendBridge->_closeDialog,
                  'redirect' => $url
              ]
          ];
          return new ServiceResponse($response);
      }
code: protected function redirectJsonAction($url): ServiceResponse
      {
          if (is_array($url)) {
              $url = $this->prepareUrl($url);
          }
          $response = [
              'code' => 'success',
              'data' => [
                  'inDialog' => $this->request->is('dialog') && !$this->FrontendBridge->_closeDialog,
                  'redirect' => $url
              ]
          ];
          return new ServiceResponse($response);
      }
code_tokens: protected function redirectJsonAction ( $ url ) : ServiceResponse { if ( is_array ( $ url ) ) { $ url = $ this -> prepareUrl ( $ url ) ; } $ response = [ 'code' => 'success' , 'data' => [ 'inDialog' => $ this -> request -> is ( 'dialog' ) && ! $ this -> FrontendBridge -> _closeDialog , 'redirect' => $ url ] ] ; return new ServiceResponse ( $ response ) ; }
docstring: Json action redirect
  
  @param  array|string  $url  URL
  @return \FrontendBridge\Lib\ServiceResponse
docstring_tokens: Json action redirect