From 190d0f75fc47fe92c735b6bec57c74c0a199d281 Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Wed, 25 Jan 2012 10:07:41 +0000 Subject: TJsonService: use TJavaScript::jsonEncode() instead of the old, slower TJSON class --- framework/Web/Services/TJsonService.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/framework/Web/Services/TJsonService.php b/framework/Web/Services/TJsonService.php index b7575b42..0ede86eb 100644 --- a/framework/Web/Services/TJsonService.php +++ b/framework/Web/Services/TJsonService.php @@ -156,10 +156,8 @@ class TJsonService extends TService $response = $this->getResponse(); $response->setContentType('text/javascript'); $response->setCharset('UTF-8'); - $json = Prado::createComponent('System.Web.Javascripts.TJSON'); - //send content - $response->write($json->encode($content)); + $response->write(TJavaScript::jsonEncode($content)); } } } -- cgit v1.2.3