How to change json structure to look like another json structure
<p>I want to change my json structure, how can I do it?</p>

<p>im getting a json that looks like this:</p>

<pre><code> body: {
     "111111": {
         "name": "exp1",
         "status": 10000
     },
     "222222": {
         "name": "exp2",
         "status": 20000
     },
     "333333": {
         "name": "exp3",
         "status": 30000
     }
 }
</code></pre>

<p>but I need it in this structure:</p>

<pre><code> body: {
     bulks: [{
         "id": "111111",
         "name": "exp1",
         "status": 100000
     }, {
         "id": "222222",
         "name": "exp2",
         "status": 200000
     }, {
         "id": "333333",
         "name": "exp3",
         "status": 300000
     }]
 }
</code></pre>

<p>Cause in my html I want to read it like this:</p>

<pre><code>&lt;div *ngIf="showingList"&gt;
  &lt;div class="list-bg"  *ngFor="#bulk of listBulks | async"&gt;
    ID: {{bulk.id}} name of item: {{bulk.name}}
  &lt;/div&gt;
&lt;/div&gt;
</code></pre>