Exercises to parse json data in python
Objective: using data file 'interface-data.json', create output that resembles the following by parsing the included JSON file.
Interface Status
================================================================================
DN Description Speed MTU
-------------------------------------------------- -------------------- ------ ------
topology/pod-1/node-201/sys/phys-[eth1/33] inherit 9150
topology/pod-1/node-201/sys/phys-[eth1/34] inherit 9150
topology/pod-1/node-201/sys/phys-[eth1/35] inherit 9150
File(s) Used:
- interface-data.json
- exer1-intf-table.py
Objective: Use the data from (http://data.maryland.gov/api/views/6jva-hr4v/rows.json?accessType=DOWNLOAD) to create a similar table which displays the average / max number of passengers per month per airline traveling through BWI airport. Format number numbers to 2 decimal places as needed.
File(s) Used:
- exer2-http-airport-json-parse.py
Notes: Written in python 3.52