title: `JSON.parse(await response.json())` throws SyntaxError: unexpected character at line 1 column 2
body: <p>I want to bring back the <code>age</code> property from the JSON created by the API but it throws this error:</p>
  <blockquote>
  <p><code>SyntaxError</code>: <code>JSON.parse</code>: unexpected character at line 1 column 2 of the JSON data</p>
  </blockquote>
  <p>The <code>console.log(await response.json())</code> gives me all my JSON data, but when I comment it out and put the last code line, this error occurs.</p>
  <p>I was told to try one of these:</p>
  <ul>
  <li><code>response.json()[&quot;age&quot;]</code></li>
  <li><code>response.json()[age]</code></li>
  <li><code>response.json().age</code></li>
  <li><code>let json = JSON.parse(response);</code></li>
  </ul>
  <p><code>console.log(json[&quot;age&quot;])</code> was close, but not successful.</p>
  <pre class="lang-js prettyprint-override"><code>let table = base.getTable(&quot;test&quot;);
  let view = table.getView(&quot;Donnée brut&quot;);
  let age;
  let query = await view.selectRecordsAsync({
    sorts: [
      // sort by &quot;Prénom&quot; in ascending order...
      {
        field: &quot;Prénom&quot;
      }
    ]
  });
  
  // print ID &amp; &quot;Prénom&quot; from each record:
  for (let record of query.records) {
    let name = (record.getCellValueAsString('Prénom'));
    var response = await fetch('https://api.agify.io/?name=' + name);
  
    /* console.log(await response.json()); */
  
    let json = JSON.parse(await response.json());
    
    console.log(json[&quot;age&quot;]);
  }
  </code></pre>