Skip to content
Browse files

that was not valid json

i tried to json_decode it having an error. Now it decodes properly...
  • Loading branch information...
1 parent 80becfb commit 87bfe523568175464e987e356780a5048dc23c43 @UnSleep UnSleep committed Sep 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 FaceDetector.php
View
2 FaceDetector.php
@@ -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 87bfe52

Please sign in to comment.
Something went wrong with that request. Please try again.