summaryrefslogtreecommitdiff
path: root/framework/Web/Services
diff options
context:
space:
mode:
authorctrlaltca@gmail.com <>2012-01-25 10:07:41 +0000
committerctrlaltca@gmail.com <>2012-01-25 10:07:41 +0000
commit190d0f75fc47fe92c735b6bec57c74c0a199d281 (patch)
treed97e715f7288508d6b3213538b60e72ec36c4316 /framework/Web/Services
parentc4bc2d0c2afc4ceb30c66d75c744382963d1f7a6 (diff)
TJsonService: use TJavaScript::jsonEncode() instead of the old, slower TJSON class
Diffstat (limited to 'framework/Web/Services')
-rw-r--r--framework/Web/Services/TJsonService.php4
1 files changed, 1 insertions, 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));
}
}
}