Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

that was not valid json

i tried to json_decode it having an error. Now it decodes properly...
  • Loading branch information...
commit 87bfe523568175464e987e356780a5048dc23c43 1 parent 80becfb
@UnSleep authored
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() {
Please sign in to comment.
Something went wrong with that request. Please try again.