Excepting the cringemarsh that is &quot;import &lt;jsonfile&gt;&quot;, this is actually very useful. This looks very unpythonic:<p>my_json[&quot;this&quot;][&quot;can&quot;][&quot;be&quot;] == &quot;nested&quot;<p>and is impossible to write defensively and cleanly after the first call:<p>my_json.get(&quot;this&quot;, {}).get(&quot;no way to not crash here&quot;)<p>Something that could do:<p>my_json.this.can.be == &quot;nested&quot;<p>With a default value would be very useful. Does anyone know something like it, or should I whip a module up in an hour?