Permalink
Browse files

Merge pull request #3 from UnSleep/patch-1

that was not valid json
  • Loading branch information...
mauricesvay committed Sep 8, 2012
2 parents 80becfb + 87bfe52 commit 24ba723aeef07a3d602ff04cb6afa57f84ac20cd
Showing with 1 addition and 1 deletion.
  1. +1 −1 FaceDetector.php
View
@@ -85,7 +85,7 @@ public function toJpeg() {
}
public function toJson() {
- return "{'x':" . $this->face['x'] . ", 'y':" . $this->face['y'] . ", 'w':" . $this->face['w'] . "}";
+ return json_encode($this->face);
}
public function getFace() {

0 comments on commit 24ba723

Please sign in to comment.