def json_format(subtitle, data):
    """
    Format json to string

    :param subtitle: description to text
    :type subtitle: string

    :param data: content to format
    :type data: dictionary
    """

    msg = subtitle+':\n'
    for name in data: msg += name+': '+data[name]+'\n'
    return msg.strip()