title: Converting a splitted objects of object to array of objects
body: <p>I have this form of data coming from an API and I want it to convert into different structure in JavaScript .</p>
  <pre><code>[
    {
      &quot;1&quot;: {
        &quot;id&quot;: 1,
        &quot;coinname&quot;: &quot;Binance Coin&quot;,
        &quot;symbol&quot;: &quot;BNB&quot;,
        &quot;owner&quot;: &quot;NULL&quot;,
        &quot;repo&quot;: &quot;NULL&quot;,
        &quot;language&quot;: &quot;NULL&quot;,
        &quot;total_public_repos&quot;: 0,
        &quot;tosymbol&quot;: &quot;BUSD&quot;,
        &quot;exchanges&quot;: &quot;Binance&quot;,
        &quot;coinlimit&quot;: &quot;-1&quot;,
        &quot;category&quot;: &quot;coin&quot;,
        &quot;domain&quot;: &quot;cryptocurrency&quot;,
        &quot;country&quot;: &quot;china&quot;,
        &quot;logo&quot;: &quot;&quot;,
        &quot;flag&quot;: &quot;&quot;,
        &quot;Product_Live&quot;: null,
        &quot;Funds_Raised&quot;: null,
        &quot;Sale_type&quot;: &quot;BFT&quot;,
        &quot;Whitepaper&quot;: &quot;&quot;,
        &quot;website&quot;: &quot;https://www.binance.com/&quot;,
        &quot;type&quot;: &quot;blockchain&quot;,
        &quot;launched&quot;: null,
        &quot;Algo_used&quot;: &quot;n/a&quot;,
        &quot;ExchangesCount&quot;: 25,
        &quot;platform&quot;: &quot;bsc&quot;
      },
      &quot;2&quot;: {
        &quot;id&quot;: 2,
        &quot;coinname&quot;: &quot;Bitcoin&quot;,
        &quot;symbol&quot;: &quot;BTC&quot;,
        &quot;owner&quot;: &quot;Bitcoin&quot;,
        &quot;repo&quot;: &quot;bitcoin&quot;,
        &quot;language&quot;: &quot;C++&quot;,
        &quot;total_public_repos&quot;: 4,
        &quot;tosymbol&quot;: &quot;USD&quot;,
        &quot;exchanges&quot;: &quot;Coinbase&quot;,
        &quot;coinlimit&quot;: &quot;20,999,999.98&quot;,
        &quot;category&quot;: &quot;Currency&quot;,
        &quot;domain&quot;: &quot;cryptocurrency&quot;,
        &quot;country&quot;: &quot;japan&quot;,
        &quot;logo&quot;: &quot;&quot;,
        &quot;flag&quot;: &quot;&quot;,
        &quot;Product_Live&quot;: null,
        &quot;Funds_Raised&quot;: null,
        &quot;Sale_type&quot;: &quot;PoW&quot;,
        &quot;Whitepaper&quot;: &quot;https://www.cryptocompare.com/media/37745820/bitcoin.pdf&quot;,
        &quot;website&quot;: &quot;https://bitcoin.org/en/&quot;,
        &quot;type&quot;: &quot;blockchain&quot;,
        &quot;launched&quot;: null,
        &quot;Algo_used&quot;: &quot;SHA-256&quot;,
        &quot;ExchangesCount&quot;: 72,
        &quot;platform&quot;: null
      }
    },
    {
      &quot;1&quot;: {
        &quot;id&quot;: 1,
        &quot;price&quot;: 400.6,
        &quot;marketcap&quot;: 67355696581.54001,
        &quot;timestamp&quot;: 1651737822,
        &quot;datetime&quot;: &quot;2022-05-05 08:03:42&quot;
      },
      &quot;2&quot;: {
        &quot;id&quot;: 2,
        &quot;price&quot;: 39538.5,
        &quot;marketcap&quot;: 752463351490.5,
        &quot;timestamp&quot;: 1651737817,
        &quot;datetime&quot;: &quot;2022-05-05 08:03:37&quot;
      }
    },
    {
      &quot;1&quot;: {
        &quot;id&quot;: 1,
        &quot;last30dcommits&quot;: null,
        &quot;activity&quot;: &quot;No Github Repo Found&quot;
      },
      &quot;2&quot;: {
        &quot;id&quot;: 2,
        &quot;last30dcommits&quot;: 154,
        &quot;activity&quot;: &quot;High Activity&quot;
      }
    },
    {
      &quot;1&quot;: {
        &quot;id&quot;: 1,
        &quot;change24h&quot;: 2.87,
        &quot;change7d&quot;: 2.12,
        &quot;change30d&quot;: -13.41,
        &quot;timestamp24h&quot;: 1651651200,
        &quot;timestamp7d&quot;: 1651132800,
        &quot;timestamp30d&quot;: 1649145600
      },
      &quot;2&quot;: {
        &quot;id&quot;: 2,
        &quot;change24h&quot;: 2.26,
        &quot;change7d&quot;: 0.47,
        &quot;change30d&quot;: -18.04,
        &quot;timestamp24h&quot;: 1651651200,
        &quot;timestamp7d&quot;: 1651132800,
        &quot;timestamp30d&quot;: 1649145600
      }
    },
    {
      &quot;1&quot;: {
        &quot;tweetsRating&quot;: 14.36,
        &quot;newsRating&quot;: 34.4
      },
      &quot;2&quot;: {
        &quot;tweetsRating&quot;: 16.41,
        &quot;newsRating&quot;: 43.44
      }
    },
    {
      &quot;1&quot;: {
        &quot;score&quot;: 70
      },
      &quot;2&quot;: {
        &quot;score&quot;: 93.33
      }
    }
  ]
  </code></pre>
  <p>this is the data I am receiving . Now I want a data like this</p>
  <pre><code>[
     {
        &quot;id&quot;: 1,
        &quot;coinname&quot;: &quot;Binance Coin&quot;,
        &quot;symbol&quot;: &quot;BNB&quot;,
        &quot;owner&quot;: &quot;NULL&quot;,
        &quot;repo&quot;: &quot;NULL&quot;,
        &quot;language&quot;: &quot;NULL&quot;,
        &quot;total_public_repos&quot;: 0,
        &quot;tosymbol&quot;: &quot;BUSD&quot;,
        &quot;exchanges&quot;: &quot;Binance&quot;,
        &quot;coinlimit&quot;: &quot;-1&quot;,
        &quot;category&quot;: &quot;coin&quot;,
        &quot;domain&quot;: &quot;cryptocurrency&quot;,
        &quot;country&quot;: &quot;china&quot;,
        &quot;logo&quot;: &quot;&quot;,
        &quot;flag&quot;: &quot;&quot;,
        &quot;Product_Live&quot;: null,
        &quot;Funds_Raised&quot;: null,
        &quot;Sale_type&quot;: &quot;BFT&quot;,
        &quot;Whitepaper&quot;: &quot;&quot;,
        &quot;website&quot;: &quot;https://www.binance.com/&quot;,
        &quot;type&quot;: &quot;blockchain&quot;,
        &quot;launched&quot;: null,
        &quot;Algo_used&quot;: &quot;n/a&quot;,
        &quot;ExchangesCount&quot;: 25,
        &quot;platform&quot;: &quot;bsc&quot;,
        &quot;price&quot;: 400.6,
        &quot;marketcap&quot;: 67355696581.54001,
        &quot;timestamp&quot;: 1651737822,
        &quot;datetime&quot;: &quot;2022-05-05 08:03:42&quot;,
        &quot;last30dcommits&quot;: null,
        &quot;activity&quot;: &quot;No Github Repo Found&quot;,
        &quot;change24h&quot;: 2.87,
        &quot;change7d&quot;: 2.12,
        &quot;change30d&quot;: -13.41,
        &quot;timestamp24h&quot;: 1651651200,
        &quot;timestamp7d&quot;: 1651132800,
        &quot;timestamp30d&quot;: 1649145600,
      &quot;tweetsRating&quot;: 14.36,
        &quot;newsRating&quot;: 34.4,
      &quot;score&quot;: 70
      },
       {
        &quot;id&quot;: 2,
        &quot;coinname&quot;: &quot;Bitcoin&quot;,
        &quot;symbol&quot;: &quot;BTC&quot;,
        &quot;owner&quot;: &quot;Bitcoin&quot;,
        &quot;repo&quot;: &quot;bitcoin&quot;,
        &quot;language&quot;: &quot;C++&quot;,
        &quot;total_public_repos&quot;: 4,
        &quot;tosymbol&quot;: &quot;USD&quot;,
        &quot;exchanges&quot;: &quot;Coinbase&quot;,
        &quot;coinlimit&quot;: &quot;20,999,999.98&quot;,
        &quot;category&quot;: &quot;Currency&quot;,
        &quot;domain&quot;: &quot;cryptocurrency&quot;,
        &quot;country&quot;: &quot;japan&quot;,
        &quot;logo&quot;: &quot;&quot;,
        &quot;flag&quot;: &quot;&quot;,
        &quot;Product_Live&quot;: null,
        &quot;Funds_Raised&quot;: null,
        &quot;Sale_type&quot;: &quot;PoW&quot;,
        &quot;Whitepaper&quot;: &quot;https://www.cryptocompare.com/media/37745820/bitcoin.pdf&quot;,
        &quot;website&quot;: &quot;https://bitcoin.org/en/&quot;,
        &quot;type&quot;: &quot;blockchain&quot;,
        &quot;launched&quot;: null,
        &quot;Algo_used&quot;: &quot;SHA-256&quot;,
        &quot;ExchangesCount&quot;: 72,
        &quot;platform&quot;: null,
      &quot;price&quot;: 400.6,
        &quot;marketcap&quot;: 67355696581.54001,
        &quot;timestamp&quot;: 1651737822,
        &quot;datetime&quot;: &quot;2022-05-05 08:03:42&quot;,
        &quot;last30dcommits&quot;: null,
        &quot;activity&quot;: &quot;No Github Repo Found&quot;,
        &quot;change24h&quot;: 2.87,
        &quot;change7d&quot;: 2.12,
        &quot;change30d&quot;: -13.41,
        &quot;timestamp24h&quot;: 1651651200,
        &quot;timestamp7d&quot;: 1651132800,
        &quot;timestamp30d&quot;: 1649145600,
        &quot;tweetsRating&quot;: 14.36,
        &quot;newsRating&quot;: 34.4,
      &quot;score&quot;: 70
      }
     
  ]
  </code></pre>
  <p>For clarification . The 1 , 2 3,...etc are the coin id of each coin and the data coming in previous code is coming from 6 sources . hence its coming as object of objects and that too separately . Now I want it this way where for each coin all the data is segregated to one single object .
  Hope I am clear in terms of the problem . Any help would be highly appreciable.</p>