I am trying to read a file which has the contents in the below format:
{"op":"mcm","clk":"6394474220","pt":1523095339090,"mc":[{"id":"1.141299528","rc":[{"atb":[[10,5.56]],"id":30246}],"con":true,"img":false}]}
{"op":"mcm","clk":"6394627886","pt":1523096762118,"mc":[{"id":"1.141299528","rc":[{"atb":[[10.5,20.78]],"id":30246}],"con":true,"img":false}]}
{"op":"mcm","clk":"6394647672","pt":1523096790720,"mc":[{"id":"1.141299528","rc":[{"atb":[[10,22.23]],"id":30246}],"con":true,"img":false}]}
I am trying to read it as json but it seems these are multiple jsons in one file. When I trying to read this json file using:
connection_file = open(filepath, 'r')
conn_string = json.load(connection_file)
It gives an error:
json.decoder.JSONDecodeError: Extra data: line 2 column 1
Please let me know how to read such files.