The backend of my webapp, written in node.js interacts with Json file, with a specific format that I thought not so complex but apparently is.
The structure of my json file is as such :
{
    "data": [
      {
        "somefield": "ioremipsum",
        "somedate" : "2018-08-23T11:48:00Z",
        "someotherdate" : "2018-08-23T13:43:00Z",
        "somethingelse":"ioremipsum",
        "files": [
          {
            "specificfieldinarray": "ioremipsum",
            "specificotherfieldinarray": "ioremipsum"
          },
          {
            "specificfieldinarray": "ioremipsum",
            "specificotherfieldinarray": "ioremipsum"
          },
          {
            "specificfieldinarray": "ioremipsum",
            "specificotherfieldinarray": "ioremipsum"
          }
        ]
      }
    ]
  }
I try to make this answer fit a JS object like this :
const file =  require('specificJsonFile.json');
let fileList = file;
And I need to loop through my 'files' array, for further treatments, but unfortunately, my JS object looks like this :
{ data:
   [ { somefield: "ioremipsum",
       somedate : "2018-08-23T11:48:00Z",
       someotherdate : "2018-08-23T13:43:00Z",
       somethingelse:"ioremipsum",
       files: [Array] } ] }
Please forgive me if this is obvious, for I am still a beginner with JS.
 
     
     
     
    