Maybe the question is a bit vague, but what I mean is this code:
'livestream' : [cow.legnames for cow in listofcows]
Now the problem is cow.legnames is also a list so I will get a list in a list when I try to return it with Json. How should I make it to return a single list.
This is the json that would be returned.
'livestream' : [['blue leg', 'red leg']]
I hope the code explains what my question is.