From ffde5144dfef15224695ddc8b605cfc44795be5e Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 29 Mar 2010 22:09:11 +0000 Subject: [PATCH] MINOR Fixed JSONDataFormatter excaping (fixes #5309, thanks briley) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@101811 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- api/JSONDataFormatter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/JSONDataFormatter.php b/api/JSONDataFormatter.php index 30d2e3833..815e141eb 100644 --- a/api/JSONDataFormatter.php +++ b/api/JSONDataFormatter.php @@ -115,7 +115,7 @@ class JSONDataFormatter extends DataFormatter { if($item->canView()) $jsonParts[] = $this->convertDataObject($item, $fields); } $json = "{\n"; - $json .= '\"totalSize\": '; + $json .= '"totalSize": '; $json .= (is_numeric($this->totalSize)) ? $this->totalSize : 'null'; $json .= ",\n"; $json .= "\"items\": [\n" . implode(",\n", $jsonParts) . "\n]\n";