title: Extract JSON Objects from HTML text file
body: <p>I have objects I'm trying to extract from a HTML file. </p>
  
  <pre><code>&lt;h1&gt; heading&lt;/h1&gt;
  &lt;p&gt; dsfhklsd sdlfjklsdj ljsdkflj&lt;/p&gt;
  {"data" : {"here" : "test"} }
  &lt;h2&gt; heading&lt;/h2&gt;
  &lt;p&gt; dsfhklsd sdlfjklsdj ljsdkflj&lt;/p&gt;
  &lt;p&gt; dsfhklsd sdlfjklsdj ljsdkflj&lt;/p&gt;
  {"data2" : {"here" : "test"} }
  </code></pre>
  
  <p>How would I go about extracting the Objects so I can then parse them with JSON.parse() and use them in my JS code? </p>
  
  <p>Essentially stripping anything that is not an object from the text / html file. </p>
  
  <pre><code>{"data" : {"here" : "test"} }
  {"data2" : {"here" : "test"} }
  </code></pre>