Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

that was not valid json #3

Merged
merged 1 commit into from

2 participants

@UnSleep

i tried to json_decode it having an error. Now it decodes properly...

@UnSleep UnSleep that was not valid json
i tried to json_decode it having an error. Now it decodes properly...
87bfe52
@mauricesvay mauricesvay merged commit 24ba723 into mauricesvay:master
@mauricesvay
Owner

Thanks for the patch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 8, 2012
  1. @UnSleep

    that was not valid json

    UnSleep authored
    i tried to json_decode it having an error. Now it decodes properly...
This page is out of date. Refresh to see the latest.
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() {
Something went wrong with that request. Please try again.