Python JSON
JSON
JSON stands for JavaScript Object Notation. It is a built-in package provided in python that is used to store and exchange data.
A. Converting JSON string to python:
Example:
Output:
B. Converting python to JSON string:
Example:
Output:
C. Conversion type:
Whenever python objects are converted to JSON, object type is changed to match that of JSON.
Example:
Output: