2. I don't see why `del jsonobject[...]` would be necessary before reassigning that key.  Also, the test in the last two lines could also be simplified to something like `jsonobject.pop('small_encoded_polyline', None)` if you don't care about that key, no?