Instruction
Have another look at our example:
{
"first_name": "Guido",
"last_name": "van Rossum",
"titles": ["BDFL", "Developer"],
"age": 63,
"married": true
}
A JSON file can store a variety of data types:
- Objects are name-value pairs that are placed inside curly braces (
{}) and correspond to Python dictionaries. - Arrays are placed inside brackets (
[]) and correspond to Python lists. - Strings are placed inside a pair of double quotes (e.g.,
"Guido"). - Numbers must be either an integer or a floating-point value.
- Logical values are either
trueorfalseand correspond to the Python values ofTrueandFalse, respectively. nullin JSON represents "no value" and corresponds toNonein Python.
Each JSON data type corresponds to a Python data type. We'll learn how to transfer information between the two languages later in this course.
Exercise
True or False: Answer by assigning True or False to the variable below the given statement.



