As I work on developing a small application using VueJs
, the data I receive is structured in a particular format:
{
"interactions":[
{
"id":14,
"user_id":1,
"schedule":"2017-06-04 05:02:12",
"type":"Meeting",
"with_client":0,
"event_type":"2",
"venue":"Mumbai",
"created_at":"2017-06-04 07:15:37",
"updated_at":"2017-06-04 07:15:37",
"deleted_at":null,
"meeting":{
...
}
},
]
}
The data contains much more detail which I aim to structure like this:
forEach(client_association)
{
...
}
forEach(stellar_participants)
{
...
}
forEach(contacts_participants)
{
...
}
Ultimately, I want the final format to look something like this:
meeting_date = 2017-06-04 05:02:12 //Schedule
meeting_call = Meeting //type
event_type = 2 //event_type
venue = Mumbai //venue
with_client = 0
stellar_participants = Analyst //stellarParticipants
clients_association = Check 2 Contact, Ammy Contact //adding all the names in clients association
contacts_association = Check Contact, Check 1 Contact //adding all the names in contacts association
This consolidated format will make it easier for me to filter the data effectively. Any guidance on achieving this would be greatly appreciated. Thank you.