Python: json normalize "String indices must be integers" error
According to pandas documentation, for data
argument of the method json_normalize
:
data : dict or list of dicts Unserialized JSON objects
In above, pd.read_json
returns dataframe
.So, you can try converting dataframe
to dictionary
using .to_dict()
. There are various options for using to_dict() as well.
May be something like below:
json_normalize(full_json_df.to_dict(), ......)