public final static function decode(string $source): array {
		if (is_null($source = json_decode($source, true)) && json_last_error() !== JSON_ERROR_NONE){
			throw new \Exception('Invalid json format!');
		}

		return $source;
	}
public final static function decode(string $source): array {
		if (is_null($source = json_decode($source, true)) && json_last_error() !== JSON_ERROR_NONE){
			throw new \Exception('Invalid json format!');
		}

		return $source;
	}
public final static function decode ( string $ source ) : array { if ( is_null ( $ source = json_decode ( $ source , true ) ) && json_last_error ( ) !== JSON_ERROR_NONE ) { throw new \ Exception ( 'Invalid json format!' ) ; } return $ source ; }
Decodes a JSON string into an associative array.

@attention This method throws an exception
if given value is not a valid JSON string.

@param string $source
@return array
@throws \Exception
Decodes a JSON string into an associative array .