title: R - Error in fromJSON(raw.data) : incomplete list
body: <p>I'm trying to read API data from the BLS into R. I am using the Version 1.0 that does not require registration and is open for public use.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>url &lt;-"http://api.bls.gov/publicAPI/v1/timeseries/data/LAUCN040010000000005"
  raw.data &lt;- readLines(url, warn = F)
  
  library(rjson)
  
  rd &lt;- fromJSON(raw.data)
  </code></pre>
  
  <p>And here is the error message I receive:</p>
  
  <pre><code>Error in fromJSON(raw.data) : incomplete list
  </code></pre>
  
  <p>If I just try to go to the url in my webrowser it seems to work (pull up a JSON webpage). Not really sure what is going on when I try to get this into R.</p>