Learn json
Encode and decode JSON, the lingua franca of APIs and config files
The json module converts between Python objects and JSON text: dicts, lists, strings, numbers, booleans and None map onto JSON's types. It is how Python programs talk to web APIs, read configuration and store simple data. Beyond the basics it offers hooks to serialise custom types, decode into your own classes and control precision and formatting.
Before you start
How deep do you want to go?
1. EssentialsRead and write simple code, do the everyday basics
2. PracticalUse it productively at work, with the usual idioms
3. AdvancedThe less common features, performance and trade-offs
4. ExpertInternals and the edge cases experts know