read json file line by line using a generator