lodash create new json object from existing one
<p>I want to delete and rename some props of my existing JSON Object to use it with select2/select2 query plugins 
My JSON object that i need to transform is: </p>

<pre><code>[
  {
    "id": 1,
    "type": "Subject1",
    "createdAt": "2016-02-19T23:03:12.000Z",
    "updatedAt": "2016-02-19T23:03:12.000Z",
    "Tags": [
      {
        "id": 1,
        "name": "sub1",
        "createdAt": "2016-02-19T23:03:12.000Z",
        "updatedAt": "2016-02-19T23:03:12.000Z",
        "tagType": 1
      }
    ]
  },
  {
    "id": 2,
    "type": "Subject2",
    "createdAt": "2016-02-19T23:03:12.000Z",
    "updatedAt": "2016-02-19T23:03:12.000Z",
    "Tags": [
      {
        "id": 16,
        "name": "sub2",
        "createdAt": "2016-02-19T23:03:12.000Z",
        "updatedAt": "2016-02-19T23:03:12.000Z",
        "tagType": 2
      }
    ]
  },
  {
    "id": 3,
    "type": "Subject3",
    "createdAt": "2016-02-19T23:03:12.000Z",
    "updatedAt": "2016-02-19T23:03:12.000Z",
    "Tags": [
      {
        "id": 22,
        "name": "sub3",
        "createdAt": "2016-02-19T23:03:12.000Z",
        "updatedAt": "2016-02-19T23:03:12.000Z",
        "tagType": 3
      }
    ]
  }
]
</code></pre>

<p>To </p>

<pre><code>[
  {
    "text": "Subject1",
    "children": [
      {
        "id": 1,
        "text": "sub1"
      }
    ]
  },
  {
    "text": "Subject2",
    "children": [
      {
        "id": 16,
        "text": "sub2"
      }
    ]
  },
  {
    "text": "Subject3",
    "children": [
      {
        "id": 22,
        "text": "sub3"
      }
    ]
  }
]
</code></pre>

<p>I need to : </p>

<ol>
<li>rename name and type to text </li>
<li>delete tagType, updatedAt and createdAt</li>
<li>rename Tags to children</li>
<li>remove the id of each top objects </li>
</ol>

<p>Is there a way to do all this using lodash ? 
What the best way? </p>