function json (r) {
    let contentType = r.headers.get('content-type');
    if (contentType && contentType.includes('application/json')) {
      return r.json();
    }
    throw new TypeError("Oops, we haven't got JSON!");
  }
// Parse response text into javascript object
Parse response text into javascript object
Parse response text into javascript object
function json (r) {
    let contentType = r.headers.get('content-type');
    if (contentType && contentType.includes('application/json')) {
      return r.json();
    }
    throw new TypeError("Oops, we haven't got JSON!");
  }
function json ( r ) { let contentType = r . headers . get ( 'content-type' ) ; if ( contentType && contentType . includes ( 'application/json' ) ) { return r . json ( ) ; } throw new TypeError ( "Oops, we haven't got JSON!" ) ; }
Parse response text into javascript object
Parse response text into javascript object