public function toJson($options = 0, $includeMetaData = false, $nestedInclude = true, $callback = null)
	{
		$data = $this->toArray($includeMetaData, $nestedInclude, $callback);
		return json_encode($data, $options);
	}
public function toJson($options = 0, $includeMetaData = false, $nestedInclude = true, $callback = null)
	{
		$data = $this->toArray($includeMetaData, $nestedInclude, $callback);
		return json_encode($data, $options);
	}
public function toJson ( $ options = 0 , $ includeMetaData = false , $ nestedInclude = true , $ callback = null ) { $ data = $ this -> toArray ( $ includeMetaData , $ nestedInclude , $ callback ) ; return json_encode ( $ data , $ options ) ; }
Get the instance as an json string.

@param  int $optinos json options
@param  boolean $includeMetaData

@return string
Get the instance as an json string .