title: Json loading with stdin failure
body: <p>I am trying to load my json file with the <code>stdin</code> using the Windows command line: <code>python algo.py &lt; number.json</code> and using <code>json.loads(sys.stdin)</code> in my script but it fails.</p>
  
  <p>However, I can load my json with</p>
  
  <pre><code>with open('number.json',encoding='utf-8-sig') as f:
  n = json.loads(f)
  </code></pre>
  
  <p>Exception raised when using <code>json.loads(sys.stdin)</code>:</p>
  
  <p><code>the JSON object must be str, bytes or bytearray, not TextIOWrapper</code></p>
  
  <p>Exception raised when using <code>json.load(sys.stdin) or json.loads(sys.stdin.read())</code>:</p>
  
  <p><code>Expecting value: line 1 column 1 (char 0)</code></p>
  
  <p>Anyone encountered the same issue? I read multiple posts in this forum prior asking help.</p>
  
  <p>Here is the json file:</p>
  
  <pre><code>[
    {
      "x": 1,
      "y": 4,
      "z": -1,
      "t": 2
    },
    {
      "x": 2,
      "y": -1,
      "z": 3,
      "t": 0
    }
  ]
  </code></pre>