title: Convert json array in js
body: <p>I want to convert below array of json object to .Note the id and tagId.Whats the best way to do this is js</p>
  
  <pre><code>[{
      "id": 10,
      "mj": 0,
      "mi": 1,
      "name": "TEST (1)",
      "number": "INBOX-0004",
      "filename": "TEST (1).png"
  }, {
      "id": 9,
      "mj": 0,
      "mi": 1,
      "name": "test",
      "number": "0003",
      "filename": "test.csv"
  
  }]
  </code></pre>
  
  <p>to </p>
  
  <pre><code>[{
      "tagId": 10,
      "mj": 0,
      "mi": 1
  
  }, {
      "tagId": 9,
      "mj": 0,
      "mi": 1
  
  }]
  </code></pre>