title: JSON to dataframe in R
body: <p>I have a text/html file with 158 row and 25 column data in JSON format and I have been trying to convert it into a dataframe so that I could write it in .csv. I have tried "rjson" and 'jsonlite' packages to read the data and then use convert it into datatable by two approach</p>
  
  <ol>
  <li><p>Use </p>
  
  <pre><code> library(jsonlite) 
   json_file = "projectslocations.html"
   json_datan &lt;- fromJSON(json_file)
  </code></pre></li>
  </ol>
  
  <p>The data structure has only one row with 158 variables</p>
  
  <p>2.using jsonlite and data.table</p>
  
  <pre><code>      library(jsonlite)
        library(data.table)
        json_dat &lt;- fromJSON(json_file)
        class(json_dat)
        lst= rbindlist(json_dat, fill=TRUE)
  </code></pre>
  
  <p>This shows data.frame with 158 rows and 25 variables. However I cant write this dataframe in csv or even view the dataframe.</p>
  
  <p>error : </p>
  
  <pre><code> Error in FUN(X[[i]], ...) : 
   Invalid column: it has dimensions. Can't format it. If it's the result of         data.table(table()), use as.data.table(table()) instead.
  </code></pre>
  
  <p>The original data is available <a href="https://www.dropbox.com/s/4i44ft0mum089o1/projectslocations.html?dl=0" rel="nofollow">here</a></p>