title: Uncaught SyntaxError: Unexpected token C - JQUERY - Passing and Decoding Json
body: <p>I have met with this error telling me that there is an unexpected token C pointing to my Jquery file. After much research, i am under assuming that the reason why i am getting this error is because the Json value passed back is already decoded and thus decoding it again will result in this error.</p>
  
  <p>Is this statement true ? or is there another reason behind ?
  This is my what my json data looks like <strong>[{"comments":"Greta"},{"comments":"John"}]</strong></p>
  
  <pre><code>&lt;a onclick="showUser('.$row['ID'].')" &gt;Show Comments&lt;/a&gt;
  
  &lt;script&gt;
  function showUser(str) {
        if (str=="") {
          document.getElementById("txtHint").innerHTML="";
          return;
        } 
        $.ajax({
            type:'post',
            url: 'viewCommentsJson.php',
            data:{q:str},
            success:function(data)
            {
                data = $.parseJSON(data);
                var response;
                $.each(data, function(index, value){
                     response += value+'&lt;br /&gt;';
                });
                $('#txtHint').html(response);
            }
        });
  }
  &lt;/script&gt;
  </code></pre>