My object returned is a list like this:
data = [{'phone': '321-321-321',
'email': '[email protected]'
},
{'phone' : '123-123-123',
'email': '[email protected]'
}]
I need a custom variable to be used in Javascript that looks like this (in fact a localstorage variable): //Javascript variable needs to iterate over the data and create a comma seperated list:
//var emails = '[email protected], [email protected]'
Is there any way of doing this efficiently?