How To Loop Over A Nested Json Structure In Python