fordham-css / TryPy

"If I have seen further, it is by standing on the shoulders of giants" - Sir Isaac Newton
MIT License
0 stars 0 forks source link

json Module Demo #10

Open nickdibari opened 6 years ago

nickdibari commented 6 years ago

json provides a package of functions to operate on JSON data. This provides an easy interface for reading and writing JSON files by translating Python dictionaries to JSON objects and vice versa. Applications for this in the real world include creating fixture files for recreating a database, parsing various web API responses, formatting log files, and much more.

Suggest demo show how to create data in a Python program, write output to a JSON file, then read the file in another program (or the two methods can be combined into the same program).

Python Docs: https://docs.python.org/2/library/json.html