import json


def line_to_json(line):
    """
    loads into a dict object a json string that is parsed in a line.
    Useful for wikipedia dumps and also java/javascript communication via objects.
    :param line: an input line
    :return: a json dictionary object.
    """
    return json.loads(line)