title: pandas `read_json` behavior with `bytes` object
body: <p>I have multiple projects(with different <code>pandas</code> versions) which make use <code>pandas.read_json</code> for converting JSON into dataframe object. Here is the behavior with version <code>1.1.4</code> which is working as expected.</p>
  <pre><code>&gt;&gt;&gt; import pandas as pd
  &gt;&gt;&gt; pd.__version__
  '1.1.4'
  &gt;&gt;&gt;
  &gt;&gt;&gt; df = pd.read_json(b'{&quot;col&quot;: [1, 2, 3]}')
  &gt;&gt;&gt; df
     col
  0    1
  1    2
  2    3
  </code></pre>
  <p>But testing the same code in the latest version(<code>1.4.0</code>) resulting <code>TypeError</code></p>
  <pre><code>&gt;&gt;&gt; import pandas as pd
  &gt;&gt;&gt; pd.__version__
  '1.4.0'
  &gt;&gt;&gt;
  &gt;&gt;&gt; df = pd.read_json(b'{&quot;col&quot;: [1, 2, 3]}')
  Traceback (most recent call last):
    File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
  ..... # Skipped traceback for brevity
  raise TypeError(
  TypeError: Expected file path name or file-like object, got &lt;class 'bytes'&gt; type
  </code></pre>
  <p>I know this can be easily fixed by using in memory bytes stream (<code>BytesIO</code>)</p>
  <pre><code>&gt;&gt;&gt; import pandas as pd
  &gt;&gt;&gt;
  &gt;&gt;&gt; pd.__version__
  '1.4.0'
  &gt;&gt;&gt;
  &gt;&gt;&gt; from io import BytesIO
  &gt;&gt;&gt; df = pd.read_json(BytesIO(b'{&quot;col&quot;: [1, 2, 3]}'))
  &gt;&gt;&gt; df
     col
  0    1
  1    2
  2    3
  </code></pre>
  <p>But I am curios to understand why the latest version of <code>read_json</code> does not work with <code>bytes</code> type.</p>
  <p>Any insights, links to Github issue/discussion will be really useful for the future readers.</p>