diff --git a/Models/NewsArticle.php b/Models/NewsArticle.php index b8db842..c8b4e02 100644 --- a/Models/NewsArticle.php +++ b/Models/NewsArticle.php @@ -414,11 +414,11 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable public function __toString() { - return $this->jsonSerialize(); + return json_encode($this->toArray()); } public function jsonSerialize() { - return json_encode($this->toArray()); + return $this->toArray(); } }