title: How to convert JSON object into an array in React Native
body: <p>I am getting a JSON object from Firebase. I am trying to convert it into an array of objects.</p>
  
  <p>I can solve this by getting childs from Firebase one-by-one and add them into array however, that is not a good practice for my case.</p>
  
  <p>The format of JSON object is as following:</p>
  
  <pre><code>key: {
        id1: {some stuff here},
        id2: {some other stuff},
      ...
  }
  </code></pre>
  
  <p>Now what I want to get from this JSON object is :</p>
  
  <pre><code>arrayName: [
           {id1:{some stuff here},
           id2:{some other stuff}
  ]
  </code></pre>
  
  <p>Hope my description if fully understandable.
  Any help would be appreciated</p>