title: how to use reviver function with fetch.response.json()
body: <p>There is a "reviver" function that comes with <strong>JSON.parse</strong> (eg: <a href="https://stackoverflow.com/questions/24374186/">"JSON.parse using reviver function"</a>).</p>
  
  <p>How can I use this "reviver" with <strong>response.json</strong>? for instance:</p>
  
  <pre><code>fetch(url)
  .then(a =&gt; a.json({reviver}))    // unfortunately not working
  .then(...)
  </code></pre>
  
  <p>I have a workaround:</p>
  
  <pre><code>fetch(url)
  .then(a =&gt; a.text())
  .then(b =&gt; new Promise((resolve) =&gt; resolve(JSON.parse(b, reviver))))
  .then()
  </code></pre>
  
  <p>but it uses one more step, which seems useless.
  Any better idea?</p>