[301] JSON
[301] JSON
Tyler Caraza-Harter
Learning Objectives Today
JSON
? differences with Python syntax
? creating JSON files
? reading JSON files
Read: Sweigart Ch 14 "JSON and APIs" to the end
Python Data Structures and File Formats
Python
File
[ ["name", "x", "y"], ["alice", 100, 150], ["bob", -10, 80]
]
list of lists
name,x,y alice,100,150 bob,-10,80
CSV file
We can use CSV files to store data we would want in lists of lists
Python Data Structures and File Formats
Python
File
[ ["name", "x", "y"], ["alice", 100, 150], ["bob", -10, 80]
]
list of lists
{ "alice": { "age": 40, "scores": [10,20,19]}, "bob": { "age": 45, "scores": [15,23,17,15]}
} dict of dicts
name,x,y alice,100,150 bob,-10,80
CSV file
?
Python Data Structures and File Formats
Python
File
[ ["name", "x", "y"], ["alice", 100, 150], ["bob", -10, 80]
]
list of lists
{ "alice": { "age": 40, "scores": [10,20,19]}, "bob": { "age": 45, "scores": [15,23,17,15]}
} dict of dicts
name,x,y alice,100,150 bob,-10,80
CSV file
{ "alice": { "age": 40, "scores": [10,20,19]}, "bob": { "age": 45, "scores": [15,23,17,15]}
}
JSON file
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related searches
- 301 prompts for argumentative writing
- 301 argumentative essay topics
- ccna 200 301 exam price
- 301 tariff refund
- opm 301 qualification standards
- opm gs 301 series
- ustr section 301 exclusion list
- section 301 list 3
- district 301 skyward
- json array of json objects
- section 301 exclusions granted ustr
- section 301 list 4a