diff options
-rw-r--r-- | framework/Web/Services/TJsonService.php | 4 |
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));
}
}
}
|