Let's get started! 🔥🔥🔥 In this video, we will create few PYTHON 🐍 scripts to demonstrate Python *JSON Serialization*. First of all, Serialization is the process of translating a data structure (an object in memory) into a format that can be stored on disk (such as JSON or XML) or transferred over the network (such as message-based web service like REST or SOAP API). Deserialization is just the reverse process: converting the serialized data into an object in memory. JSON is one of the most popular data serialization formats, with a syntax for storing and exchanging data. It is text, written with JavaScript object notation. To work with JSON data, Python has a built-in package called json. In this tutorial, you will learn some basics in less than 5 minutes!
📺 In this video , you will learn how to:
★ 0:08 What is JSON
★ 0:12 Use json.loads() function to convert JSON to Python
★ 0:56 Use json.dumps() function to convert Python to JSON
★ 1:34 Convert a complex Python object to JSON
★ 2:19 Add optional indent parameter to json.dumps()
Tips and Tricks:
► json.loads() is used to parse JSON - Convert from JSON to Python object.
► json.dumps() is used to convert from Python object to JSON. We can use the indent parameter to define the numbers of indents to make a more readable JSON.
►When converting from Python to JSON, objects are converted into the following JSON equivalent:
dict to Object
list to Array
tuple to Array
string to String
int to Number
float to Number
True to true
False to false
None to null
► There are tools online to help you format and validate JSON, such as: https://jsonformatter.curiousconcept.... or https://jsonformatter.org/
WATCH MORE PYTHON TUTORIALS 🐍
• 🐍 Python Coding for Beginners
For the setup, please read the followings before you begin:
1. Download latest Python: https://www.python.org/downloads/
2. Install Python and remember to select "Add Python... to PATH" when asked.
3. Download and install latest Visual Studio Code: https://code.visualstudio.com/Download
4. Install the Python extension for Visual Studio Code: Go to View and select Extensions, or select the Extensions icon, then search for python.
Python - a programming language used by world-class companies such as Amazon.com, Alphabet (Google), Facebook, Twitter, and NASA.
👇 SUBSCRIBE TO CODING WITH KIDS 👨🏻💻👩🏻💻 YOUTUBE CHANNEL NOW 👇
https://youtube.com/CodingWithKids?su...
#CodingWithKids #PythonProgramming #PythonForBeginners
On this page of the site you can watch the video online How to Code PYTHON: *JSON Serialization* Tutorial with a duration of hours minute second in good quality, which was uploaded by the user Coding With Kids 25 June 2021, share the link with friends and acquaintances, this video has already been watched 185 times on youtube and it was liked by 6 viewers. Enjoy your viewing!