title: Importing data from JSON link into R
body: <pre><code>region_opinion_favor &lt;-
  fromJSON("http://ava.publicreligion.org/ajx_map.regionsdata?
  category=lgbt_ssm&amp;#038;sc=2&amp;#038;year=2015&amp;#038;topic=lgbt")$regions
  </code></pre>
  
  <p>Here is the error:</p>
  
  <pre><code>Error in parse_con(txt, bigint_as_char) : 
   lexical error: invalid char in json text.
                                     &lt;!DOCTYPE html&gt;    &lt;!--[if IE 8
                   (right here) ------^`
  </code></pre>
  
  <p>Any advice on how to parse this correctly?</p>
  
  <p>I'm trying to reproduce this visualization:</p>
  
  <p><a href="http://nandeshwar.info/data-visualization/wall-street-journal-data-visualization-r/" rel="nofollow noreferrer">http://nandeshwar.info/data-visualization/wall-street-journal-data-visualization-r/</a></p>