JSON Tutorial
Python JSON Tutorial
Welcome to Python JSON Tutorial!
In this tutorial, we will learn how to handle JSON files or JSON data in Python programs.
Python JSON Tutorials
The following is a list of Python JSON Tutorials, that will cover different use cases of working with JSON data in Python programs.
- Python - Create JSON string
Python tutorial to create a JSON string from Python object. - Python - Read JSON file
Python tutorial to read a JSON file and store it in a Python object. - Python - Read all JSON files in directory
Python tutorial to read all JSON files in given directory usingos.listdir()
function. - Python - Write JSON string to file
Python tutorial to write JSON string to a file. - Python - Parse JSON string
Python tutorial to parse a given JSON string into a Python object. - Python - Convert class object to JSON
Python tutorial to convert given user defined class object to JSON. - Python - Convert list of objects to JSON
Python tutorial to convert given list of user defined objects into a JSON string. - Python - Convert dataclass to JSON
Python tutorial to convert a dataclass object into a JSON string using json.dumps() method. - Python - Convert tuple to JSON
Python tutorial to convert given Tuple object to a JSON Array. - Python - Convert CSV string to JSON
Python tutorial to convert given CSV string into a JSON. - Python - Convert JSON to dictionary
Python tutorial to convert given JSON string into a Python Dictionary. - Python - Convert JSON to list
Python tutorial to convert given JSON (Array) string into a list. - Python - Convert list to JSON
Python tutorial to convert given List into a JSON Array. - Python - Print list in JSON format
Python tutorial to print the given list in JSON string format, that is if the list is converted to a JSON string.
Summary
In this tutorial, we presented all the tutorials covered in this website regarding JSON.