Fun is the only thing that can justify this blasphemy :)<p>Why do this instead of:<p><pre><code>   myvar = read_json_file_as_object(&#x27;path&#x2F;to&#x2F;file&#x27;)
</code></pre>
??<p>Ok, you can argue that function would hit the hard drive many times when called from multiple modules (while imports would not), but this can be fixed with simple memoization.