/** * Serialises $this to a JSON string * @return string */ public function serialise() { return Json::serialise($this); }
/** * Formats the current object to a JSON-formatted string * IMPORTANT! This will serialise all public properties * @return string */ public function toJsonString() { return Json::serialise($this); }