import json


def read_twint_file(file_name):
    """
    Reads a twint file and returns tweets with replies in json format
    """
    tweets = []
    with open(file_name, "r", encoding='utf8') as file:
        for line in file.readlines():
            tweet = json.loads(line)
            if int(tweet['replies_count']) > 0 or int(tweet['has_parent_tweet']) > 0:
                tweets.append(tweet)

    return tweets