Video 11: JSON Files (page 4 of 4) |
Within the json module, we typically use the dump function (json.dump) to create a new json file. In this function, we pass in the handle object, a dictionary object, and the indent keyword argument (to aid with formatting) as the arguments to json.dump(). If you are comfortable working with dictionary objects, then you should be comfortable working with JSON files!
Reading Check: Hollywood Replaced the Original Film Capital of Fort Lee, NJ.