title: R Jsonlite - How to iterate a JSON list of objects?
body: <p>I'm very new in R, but I was tasked with reading a JSON file that looks like the following :</p>
  <pre class="lang-json prettyprint-override"><code>{
    &quot;revisions&quot; : [
      {&quot;number&quot;: 1, &quot;description&quot; : &quot;first revision&quot;},
      {&quot;number&quot;: 2, &quot;description&quot; : &quot;second revision&quot;},
      {&quot;number&quot;: 3, &quot;description&quot; : &quot;third revision&quot;}
    ]
  }
  </code></pre>
  <p>I need to do some data manipulation iterating over <code>revisions</code>, but I can't understand what type of data structure jsonlite is transforming this list into, it seems it transposed it.</p>
  <p>This is what I've tried :</p>
  <pre class="lang-r prettyprint-override"><code>json = fromJSON('data.json')
  for (revision in json$revisions) {
      print(revision$number) # Doesn't work
      print(revision['number']) # Doesn't work
  }
  </code></pre>
  <p>How can I read the json file in the way I'm trying above?</p>
  <p>Using R 3.6.1, ideally I need to keep it to the base functions</p>