title: Uncaught SyntaxError Unexpected token < in JSON
body: <p>I'm trying to do an exercise and I get a problem, when I execute the code, it show me this message:</p>
  
  <pre><code>VM45:1 Uncaught SyntaxError: Unexpected token &lt; in JSON at position 0
      at JSON.parse (&lt;anonymous&gt;)
      at Object.success (app.js:88)
      at fire (jquery.js:3268)
      at Object.fireWith [as resolveWith] (jquery.js:3398)
      at done (jquery.js:9305)
      at XMLHttpRequest.&lt;anonymous&gt; (jquery.js:9548)
  </code></pre>
  
  <p>I was looking but I can't see the fault. I downloaded jquery from development and I put like jquery.js and I'm using a downloaded bootstrap.</p>
  
  <p>I was checking the line 88 but I don't see the problem... I've tried to see if I have a problem with the const but I don't see anything.</p>
  
  <pre><code>// Get a Single Task by Id 
      $(document).on('click', '.task-item', (e) =&gt; {
        const element = $(this)[0].activeElement.parentElement.parentElement;
        const id = $(element).attr('taskId');
        $.post('task-single.php', {id}, (response) =&gt; {
          const task = JSON.parse(response);
          $('#name').val(task.name);
          $('#description').val(task.description);
          $('#taskId').val(task.id);
          edit = true;
        });
        e.preventDefault();
      });
  </code></pre>
  
  <p>The line is 88 is:  <code>const task = JSON.parse(response);</code></p>
  
  <p>I want to correct this mistake, because I can't edit my tasks if I have it.</p>