public static function encode($data, $forceObject = false)
	{
		return @json_encode($data, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | ($forceObject ? JSON_FORCE_OBJECT : 0));
	}
public static function encode($data, $forceObject = false)
	{
		return @json_encode($data, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | ($forceObject ? JSON_FORCE_OBJECT : 0));
	}
public static function encode ( $ data , $ forceObject = false ) { return @ json_encode ( $ data , JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | ( $ forceObject ? JSON_FORCE_OBJECT : 0 ) ) ; }
Encode the given data into a JSON string.

@param mixed $data The data to be JSON-encoded.
@param boolean $forceObject Force empty arrays to be encoded as objects?
@return string
Encode the given data into a JSON string .