def print_json(secrets):
    """print json formatted key: value pairs to stdout"""
    result = ''
    result += '{\n'
    for secret in secrets:
        for key in secret:
            result += f'"{key}": "{secret[key]}",\n'
    result = result[:-2] + '\n}'
    print(result)
