Can you modify the code above to save the extracted data in a dictionary and save it as a json file?