Pandas to JSON example. Fp file pointer used to read a text file binary file or a JSON file that contains a …