title: JSON to R data.frame
body: <p>I have a problem using <code>rjson</code> package to convert JSON to R <code>data.frame</code>. </p>
  
  <p>I started with:</p>
  
  <pre><code>library("rjson")
  json_file &lt;- "btcusd.txt"
  json_data &lt;- fromJSON(paste(readLines(json_file), collapse=""))
  </code></pre>
  
  <p><code>btcusd.txt</code> file contains the following:</p>
  
  <pre><code>{"Response":"Success","Type":100,"Aggregated":true,"Data":
          [{"time":1510650000,"close":6488.28,"high":6618.69,"low":6482.22,"open":6492.35,"volumefrom":9422.44,"volumeto":61626698.63},
          {"time":1510671600,"close":6541,"high":6592.05,"low":6487.35,"open":6549.1,"volumefrom":12618.61,"volumeto":82634018.7},],
          "TimeTo":1511298000,"TimeFrom":1510574400,"FirstValueInArray":true,"ConversionType":{"type":"direct","conversionSymbol":""}}
  </code></pre>
  
  <p>Can anyone help me to make it into a data.frame?</p>