title: Alternatives to JavaScript eval() for parsing JSON
body: <p>Quick Question. Eval in JavaScript is unsafe is it not? I have a JSON object as a string and I need to turn it into an actual object so I can obtain the data:</p>
  
  <pre><code>function PopulateSeriesFields(result) 
  {
      data = eval('(' + result + ')');
      var myFakeExample = data.exampleType
  }
  </code></pre>
  
  <p>If it helps I am using the $.ajax method from jQuery.</p>
  
  <p>Thanks</p>