title: Easiest way to get json and parse it using JQuery and Javascript?
body: <p>I am trying to get this code snipped to work but I can't seem to figure this out. The goal is to return and parse a json object in the most simple, easiest way possible. Here is the code snippet.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"&gt;
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;h2&gt;Create Object from JSON String&lt;/h2&gt;
  
  &lt;p id="demo"&gt;&lt;/p&gt;
  
  
  &lt;script&gt;
    $.getJSON('http://finance.google.com/finance/info?client=ig&amp;q=NASDAQ:TSLA', function(data) {
     var obj = JSON.parse(data);
  document.getElementById("demo").innerHTML = obj.id;
    });
  &lt;/script&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <hr>
  
  <p>UPDATE:</p>
  
  <p>I was able to figure it out with all of the assistance down below, Thank you! I will post the solution for future cases. The problem was that I had forgotten about the callback since I wasn't following Same Origin Policy.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"&gt;
  &lt;/script&gt;
  &lt;script&gt;
  $(document).ready(function () {
   $.getJSON('https://www.google.com/finance/info?q=NASDAQ:TSLA&amp;callback=?', function(data) {
       $('#demo').text(data[0].id);
      });
  });
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;p id="demo"&gt;&lt;/p&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>