import json


def readJson(fname):
    """ Read json file and load it line-by-line into data
    """
    data = []
    line_num = 0
    with open(fname, encoding="utf-8") as f:
        for line in f:
            line_num += 1
            try:
                data.append(json.loads(line))
            except:
                print("error", line_num)
    return data