title: convert nested object to one level up object in javascript
body: <p>given json : -</p>
  
  <pre><code>{
      "_id": "5c1c4b2defb4ab11f801f30d",
      "name": "Ray15",
      "email": "ray15@gmail.com",
      "deviceToken": "dgtssgeegwes",
      "deviceType": "IOS",
      "tokens": [
          {
              "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1YzFjNGIyZGVmYjRhYjExZjgwMWYzMGQiLCJhY2Nlc3MiOiJhdXRoIiwiaWF0IjoxNTQ1MzU4MTI2fQ.YdK0MjOm7Lff22uTFITQdic0gKdMZRpsmRee-yejDpQ"
          }
      ]
  }
  </code></pre>
  
  <p>desired json: - </p>
  
  <pre><code>{
    "_id": "5c1c4b2defb4ab11f801f30d",
    "name": "Ray15",
    "email": "ray15@gmail.com",
    "deviceToken": "dgtssgeegwes",
    "deviceType": "IOS",
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1YzFjNGIyZGVmYjRhYjExZjgwMWYzMGQiLCJhY2Nlc3MiOiJhdXRoIiwiaWF0IjoxNTQ1MzU4MTI2fQ.YdK0MjOm7Lff22uTFITQdic0gKdMZRpsmRee-yejDpQ"
  }
  </code></pre>
  
  <p>I want to convert JSON with the help of lodash library of npm in javascript or suggest any other library, </p>
  
  <p>it might be a silly question, Please explain it properly, I am a newbie in javascript and try to learn node.js. comment me if you need more explanation.</p>
  
  <p>Thanks for help </p>