Skip to content
Permalink
Browse files

RFC4627-compliant JSON

  • Loading branch information...
slywalker committed Nov 18, 2013
1 parent ef4311e commit 86f08c9f86c5977d59b72f25143906ae3475e5d1
Showing with 1 addition and 1 deletion.
  1. +1 −1 Cake/View/JsonView.php
@@ -150,7 +150,7 @@ protected function _serialize($serialize) {
return json_encode($data, JSON_PRETTY_PRINT);
}
return json_encode($data);
return json_encode($data, JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_AMP | JSON_HEX_QUOT);
}
}

0 comments on commit 86f08c9

Please sign in to comment.
You can’t perform that action at this time.