Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

that was not valid json #3

Merged
merged 1 commit into from almost 2 years ago

2 participants

UnSleep Maurice Svay
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
Maurice Svay mauricesvay merged commit 24ba723 into from
Maurice Svay

Thanks for the patch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Sep 08, 2012
UnSleep UnSleep that was not valid json
i tried to json_decode it having an error. Now it decodes properly...
87bfe52
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  FaceDetector.php
2  FaceDetector.php
@@ -85,7 +85,7 @@ public function toJpeg() {
85 85 }
86 86
87 87 public function toJson() {
88   - return "{'x':" . $this->face['x'] . ", 'y':" . $this->face['y'] . ", 'w':" . $this->face['w'] . "}";
  88 + return json_encode($this->face);
89 89 }
90 90
91 91 public function getFace() {

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.