Saving the extracted data on json files