public function jsonSerialize() {
		$json = array();

		foreach(get_object_vars($this) as $var => $val) {
			if($val instanceof \DateTime)
				$json[$var] = $val->getTimestamp();
			else
				$json[$var] = $val;
		}

		return $json;
	}
public function jsonSerialize() {
		$json = array();

		foreach(get_object_vars($this) as $var => $val) {
			if($val instanceof \DateTime)
				$json[$var] = $val->getTimestamp();
			else
				$json[$var] = $val;
		}

		return $json;
	}
public function jsonSerialize ( ) { $ json = array ( ) ; foreach ( get_object_vars ( $ this ) as $ var => $ val ) { if ( $ val instanceof \ DateTime ) $ json [ $ var ] = $ val -> getTimestamp ( ) ; else $ json [ $ var ] = $ val ; } return $ json ; }
Get a json serialized version of this object.
@return array
Get a json serialized version of this object .