HUT 8 Techtorial – DevNet Associate DEVASC 200-901: Parsing JSON Data with Python 3 – Part III

In this comprehensive and exhaustive Hut 8 ‘techtorial’ we take a deep dive look at how to use the Python programming language to parse JavaScript Object Notation (JSON) data. In Part III we are going to dive a little deeper by now accessing the JSON “route” object (what Python will see as a dictionary!) to parse out interesting information like the number of gallons of gas used and the total mileage traveled for our directions. We also add some intelligence to our script by giving the user the option to hit ‘q’ to quit if they so desire. Enjoy!