import json


def deserialize_line(line, encoding="utf-8"):
    """
    Transform a line in a file that was created as a result from a Luigi task into its metadata and main data.
    
    :param line: Line to be serialized.
    :type line: str
    :param encoding: Encoding of line (default is utf-8).
    :type encoding: str
    """
    return json.loads(line, encoding=encoding)