Is it feasible to parse through the single 'Data' object in the JSON provided, remove backslashes, separate each key-value pair within the object, and then reattach them to the original data?
This example:
{
"Timestamp": "2018-05-14T20:02:57.000Z",
"Data": "{\"UserId\":\"00529000001jD4uAAE\",\"CardElement\":\"Total Due\",\"EntityLabel\":\"Total Due\",\"EntityName\":\"Contract Account\",\"TrackingEvent\":\"Field\",\"TrackingService\":\"VCards\"}",
"CustomerInteractionId": "a1629000000VQgvAAG",
"Vlocity Tracking Entry Name": "Field"
}
Should become:
{
"Timestamp": "2018-05-14T20:02:57.124Z",
"CustomerInteractionId": "a1629000000VQgvAAG",
"Vlocity Tracking Entry Name": "Field",
"UserId": "00529000001jD4uAAE",
"CardElement": "Total Due",
"EntityLabel": "Contract Account",
"TrackingEvent": "Field",
"TrackingService": "VCards"
}
I am encountering difficulties breaking down the key-value pairs and merging them back into the JSON. The solution can be in JS or AngularJS.