converted each file into flat list of json objects