import json

#{"_index":"ok_chat","_type":"_doc","_id":"rb7uxp2ibtWwEzC2s","_score":1,"_source":{"rid":"GENERAL","msg":"Because they on the left are going to use any reason they can to take your guns","ts":{"$date":"2021-03-28T16:57:38.926Z"},"u":{"_id":"yRL8yLzQaf4qpbZXJ","username":"ssgtgman","name":"Gary"},"_updatedAt":{"$date":"2021-03-28T16:57:38.937Z"},"mentions":[],"channels":[]}}


esf = open("ok_chat.json")

with esf as ef:
    for line in ef:
        _dic = json.loads(line.strip())

        try:
            print( _dic["_source"]["u"]["username"],  "(", _dic["_source"]["u"]["name"], ")", ": ",  _dic["_source"]["msg"])
        except:
            print( _dic["_source"]["u"]["username"], ": ",  _dic["_source"]["msg"])
