How to load json from resource_stream in python 3
<p>I'm trying to use to use <code>resource_stream</code> from <code>pkg_resources</code> in conjunction with <code>json.load</code> and am having problem in python 3 that were not present in python 2.</p>

<p>When I try to run the following command, I get the error:</p>

<pre><code>loaded_json = json.load(resource_stream(__name__, 'path/to/foo.json'))

&gt;&gt; TypeError: the JSON object must be str, not 'bytes'
</code></pre>