Q:

How to use setup JSON file for use in another file?

I would just like to ask. How I can setup my JSON file for use? Like I created a taskList.json file in javascript, however, I don't know what are the next steps to parsing the data. The code I have is below: 
{
    "project": "temp",
    "tasks": [{
        "_id": "5",
        "view_id": "5bcf473",
        "projectname": "5bcf4628b68cb41182c1f5db",
        "task_name": "add security",
        "view_index": 1,
        "created_by": {
            "created_by_ref": "ai",
            "created_by_name": "Benni",
            "created_by_avi": "benn@gmail.com"
        },
        "assiged_to": {
            "assiged_name": "Benni",
            "assiged_ref": "sddhf2ef",
            "role": "developer"
        },
        "planned": {
            "started": 0,
            "end": 0
        },
        "Smartys": [{
            "words": "detail",
            "task": "planned_estimated_time",
            "secret": "task_details",
            "date": 0
        }]
    }]

}

A:

Simply require the file 
var json = require('./taskList.json');

and node will parse it for you.

