python how to read text file which has json to dataframe code example Example: read json pandas df = pd.read_json('data.json')