To extract data from the JSON file.