Beispiel #1
0
 public function load($resource, $type = null)
 {
     $data = $this->loadFile($resource);
     return Json::parse($data, true);
 }
Beispiel #2
0
 /**
  * Returns the model's JSON representation.
  *
  * @return string
  */
 public function toJSON()
 {
     return Json::dump($this);
 }