added minimal error checking for the json lines in the received_data.txt