title: Convert JSON string in html into JSON object
body: <p>I've retrieved some data in JSON format from MarkitOnDemand API, the JSON content I want is inside the body tag of the html string like this:</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
    &lt;meta charset="utf-8"&gt;
    &lt;title&gt;jQuery Autocompelete&lt;/title&gt;
    &lt;link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"&gt;
    &lt;script src="//code.jquery.com/jquery-1.10.2.js"&gt;&lt;/script&gt;
    &lt;script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"&gt;&lt;/script&gt; 
  &lt;/head&gt;
  &lt;body&gt;
  {"Status":"SUCCESS","Name":"Apple Inc","Symbol":"AAPL","LastPrice":109.59,"Change":1.91,"ChangePercent":1.77377414561664,"Timestamp":"Wed Mar 30 15:59:00 UTC-04:00 2016","MSDate":42459.6659722222,"MarketCap":607630850970,"Volume":3211276,"ChangeYTD":105.26,"ChangePercentYTD":4.11362340870226,"High":110.41,"Low":108.6,"Open":108.64}&lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The above code of html string is in the "data" string of my AJAX call below: </p>
  
  <pre><code>$(function(){
      $('#searchform').on('submit', function(event){
          event.preventDefault();
  
          var requestdata = 'symbol=' + $('#query').val();
          $.ajax({
              url: "receivesearch.php",
              method: "get",
              data: requestdata,
              success: function(data){  //html string in this data parameter
  
                  //CONFUSED HERE
  
              }
          });
      });
  });
  </code></pre>
  
  <p>But I failed to get the JSON string out of the body tag and parse it into JSON object...</p>
  
  <p>Could anyone please help me with this problem? Thank you so much!!</p>
  
  <p>Here is my php code:</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
    &lt;meta charset="utf-8"&gt;
    &lt;title&gt;jQuery Autocompelete&lt;/title&gt;
    &lt;link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"&gt;
    &lt;script src="//code.jquery.com/jquery-1.10.2.js"&gt;&lt;/script&gt;
    &lt;script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"&gt;&lt;/script&gt; 
  &lt;/head&gt;
  &lt;body&gt;
  &lt;?php
      if(isset($_GET['symbol'])){
          $lookupURL = "http://dev.markitondemand.com/MODApis/Api/v2/Quote/json?symbol=" . $_GET['symbol'];
          $jsonhtml = file_get_contents($lookupURL);
          echo $jsonhtml;
      }
  ?&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>