title: Uncaught SyntaxError: Unexpected token a in JSON at position 0 at JSON.parse (<anonymous>)
body: <p>i know that there's so many questions about this but sorry im really confuse about this error...</p>
  
  <p>i created a login page and i used ajax for the POST Request..what happens is when i used this</p>
  
  <pre><code>$.ajax({
   url:'../ajax/checklogin.php',
   type:'POST',
   dataType:'JSON',
   data:$('form').serialize(),   
    success: function(result){
    $.post("../www/login.php",{ users_id: JSON.parse(result.users_id)}).done(window.location.href='../www/index.php');
    }
  });
  </code></pre>
  
  <p>the <code>$.post</code> is working but when i tried to add another field to parse i got this error.. the error is on users_active.. for some reason i dont have any idea why i got the error  </p>
  
  <pre><code>$.post("../www/login.php",{ users_id: JSON.parse(result.users_id),users_active: JSON.parse(result.users_active)}).done(window.location.href='../www/index.php');
  </code></pre>
  
  <p>the other field are  fine but the only field that gives me error is the users_active.. i even check the json array that is being returned they are valid json...</p>