I have a JSON which contains directory structure and needs to convert to javascript object so that a map for key-value pair can be formed from it.
{
    "/Inbound/tmp/ARTIFACTDOWNLOAD_DIR": [
        {
            "filePath": "/Inbound/tmp/ARTIFACTDOWNLOAD_DIR",
            "fileName": "package_installation_logs.txt",
            "lastModifiedDate": "06-14-2019 09:34:43",
            "sizeofFile": "0 KB",
            "type": "File"
        }
    ],
    "/Inbound": [
        {
            "filePath": "/Inbound",
            "fileName": "osqueryd.INFO",
            "lastModifiedDate": "06-14-2019 09:23:26",
            "sizeofFile": "1 KB",
            "type": "File"
        },
        {
            "filePath": "/Inbound",
            "fileName": "tmp",
            "lastModifiedDate": "06-14-2019 10:51:55",
            "sizeofFile": "",
            "type": "Folder"
        }
    ]
}
Here key-value pairs in JSON contain different keys. So, how I can map key-value to javascript object using typescript
 
     
     
    