MCS 260 Fall 2021
Emily Dumas
JSON stands for JavaScript object notation. It is a format for storing various types of data in text files.
We'll discuss it in some detail on Monday.
To motivate that discussion, let's work through an example program where it might be useful.
We have talked about how to read and write strings in text files.
Often, files are used to hold structured data that is generated by one program, and used by another.
Accomplishing that with file.read()
, file.write()
, and str.format()
is possible, but tedious and error-prone.
Count the words in a file and print a report: