Is there a way to create a custom JavaScript function that can extract specific data from a JSON object based on certain keywords? I am working with a Task Manager API and would like to automatically populate fields based on the task title. Here is an example of the JSON data:
{
"data": {
"boards": [
{
"owner": {
"id": 555555555
},
"groups": [
{
"id": "new_group",
"title": "Forecasts",
"items": [
{
"id": "355670938",
"name": "PIPE: Production & Client Management | STAGE: New Support Intake | NAME: TESTY | DATE: 10/27/2019 | TIME: 8:00 am | TIME ZONE: Central Time | DURATION: 60 minutes | TYPE: All Virtual | AUDIENCE VIEW:"
}
]
}
]
}
]
},
"account_id": 55555555
}
I specifically want to retrieve the information for DATE, TIME, DURATION, and TYPE from items.name. How can I create a function to extract only this data?