Skip to content

tchambil/exercise-python-json-parsing

 
 

Repository files navigation

exercise-python-json-parsing

Exercises to parse json data in python

Exercise 1

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:

  1. interface-data.json
  2. exer1-intf-table.py

Exercise 2

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:

  1. exer2-http-airport-json-parse.py

Notes: Written in python 3.52

About

Exercises to parse json data in python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%