title: How to validate a JSON String JQuery
body: <p>I tried that:</p>
  
  <pre><code>var c = $.parseJSON(something here)
  </code></pre>
  
  <p>and I control that:</p>
  
  <pre><code>c === undefined
  </code></pre>
  
  <p>This works however it throws error while trying to parse an invalid JSON string. I don't want it throw that error. </p>
  
  <p>Any advices?</p>