import json


def parse_info_output(out):
    """
    Parses the output of 'docker info --format="{{json .}}"'. Essentially just returns the parsed JSON string,
    like the Docker API does. Fields are slightly different however.

    :param out: CLI output.
    :type out: unicode | str
    :return: Parsed result.
    :rtype: dict
    """
    return json.loads(out, encoding='utf-8')