I have json files where the various fields can change.
       "eventHistory": [{
        "occurredAt": "2018-03-17T10:40:05.707 0000",
        "calluuid": "G8EMGR6EKD7DLDRP79FOEONVQ4000031",
        "eventId": "2018-03-17T10:40:05.707Z_1521283205_G8EMGR6EKD7DLDRP79FOEONVQ4000031",
        "event": "Data",
        "data": {
            "added": {
                "OtherTrunkName": "sbc-trunk",
                "OriginationDN": "1234",
                "BusinessCall": "0",
                "OriginationDN_location": "MNLSwitch"
            }
        }
    }, {
        "occurredAt": "2018-03-17T10:40:06.033 0000",
        "calluuid": "G8EMGR6EKD7DLDRP79FOEONVQ4000031",
        "eventId": "2018-03-17T10:40:06.033Z_1521283206_G8EMGR6EKD7DLDRP79FOEONVQ4000031",
        "event": "Data",
        "data": {
            "added": {
                "IW_CaseUid": "04d575ba-32e3-48da-8986-a19a6ff493b3",
                "IW_BundleUid": "bf3ac19e-e2ea-4d7b-9b48-ef5e17dfdaa1"
            }
        }
    }, {
        "occurredAt": "2018-03-17T10:40:10.407 0000",
        "calluuid": "G8EMGR6EKD7DLDRP79FOEONVQ4000031",
        "eventId": "2018-03-17T10:40:10.407Z_1521283210_G8EMGR6EKD7DLDRP79FOEONVQ4000031",
        "event": "Data",
        "data": {
            "added": {
                "WrapUpTime": "0"
            },
            "deleted": {
                "OriginationDN_location": "MNLSwitch",
                "OriginationDN": "1234"
            }
        }
    }, 
Is there an 'easy' way to simply read through and add these as variables to a js. I gather each field and then post to PHP which saves. then I need to display in a tree... another question likely to appear on that one too. Any help much appreciated.
 
    
