that was not valid json #3

Merged
merged 1 commit into from Sep 8, 2012
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() {