Python: Working with JSON

Wishlist Share

About Course

JSON is the most common format for exchanging data between programs and web services. Learn to read and write JSON in Python with the standard json module: loads, dumps, load and dump, how JSON and Python types map, pretty-printing, handling errors and non-standard values, and working safely with data from outside sources.

Tutwoo is independent and is not affiliated with or endorsed by the Python Software Foundation. Examples are for learning; follow your organisation’s coding and security standards.

© 2026 Tutwoo UK Limited. This course was created in-house by Tutwoo and is our original work. It is for your own learning only: please do not copy, share, record or resell it.

What Will You Learn?

  • Convert between JSON text and Python objects with json.loads and json.dumps
  • Read and write JSON files with json.load and json.dump
  • Understand how JSON types map to Python types and the surprises
  • Handle invalid JSON, dates and other non-serialisable values safely

Course Content

Course Lessons

  • JSON and Python types
  • loads and dumps: strings
  • load and dump: files
  • Errors, special values and safety

Sources & Further Reading
The official guidance this course is based on.

Final Assessment

Student Ratings & Reviews

No Review Yet
No Review Yet

Want to receive push notifications for all major on-site activities?

✕