title: jquery Uncaught SyntaxError: Unexpected token :
body: <p>my post looks like this:</p>
  
  <pre><code>$.post('/ajaxvalidate/1', {"nid": nid}, function(data) {
  </code></pre>
  
  <p>I get the <code>Uncaught SyntaxError: Unexpected token :</code> error in google chrome.</p>
  
  <p>I understand that I need to set a content type or something, from this question:
  <a href="https://stackoverflow.com/questions/3143698/uncaught-syntaxerror-unexpected-token">Uncaught SyntaxError: Unexpected token :</a></p>
  
  <p>I don't understand how to do it. </p>
  
  <p><a href="http://api.jquery.com/jQuery.post/" rel="nofollow noreferrer">http://api.jquery.com/jQuery.post/</a> has no examples. :( Thanks.</p>