- 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 likejsonobject.pop('small_encoded_polyline', None)
if you don't care about that key, no?
ferada
- 11.1k
- 25
- 63