Learn Python - Working with JSON Files | JSON Module

preview_player
Показать описание
In this video, I teach about how you can work with JSON data in string or how you can extract or create JSON files using Python's built-in JSON module.

This video starts with introduction to JSON and how JSON compares to Python dictionaries. Then, I convert a nested JSON string into Python object and parse specific nested information using json module from Python. To print JSON information, we can use dumps function from json module. This gives several options for specifying indentation for pretty printing JSON information. We can also sort keys using JSON modules's dump function.

Similar to loads and dumps functions, there are equivalents of these to read and write json data from files. For this we need to know how to work with files.

Finally, I show a demo of how we can convert a json file into csv file. This is very useful as sometimes you may need to convert json data into csv format for better readability.

Links shown in this video.

If you like our content, click on *SUBSCRIBE* button and click on Bell icon to receive latest and greatest updates of my video lessons.

Follow us on Facebook, Twitter, Instagram

Рекомендации по теме
join shbcf.ru