0
Good evening, I’m taking the data via API and turning it into a . JSON to record in a list:. Inside this info is a list of dictionaries called custom_fields, so I used map with lambda function to pick up the values:
info = r.json()
gravar=[]
for infos in info['tickets']:
gravar.append((infos['url'],
infos['id'],
infos['created_at'],
infos['status'],
infos['requester_id'],
infos['collaborator_ids'],
infos['tags'],
map(lambda t: t["id"], infos['custom_fields']),
map(lambda v: v["values"], infos['custom_fields'])
))
print(gravar[0])
Instead of returning the values, it is returning in this way:
...<map object at 0x000001B3B27CEFD0>, <map object at 0x000001B3B27F0048>)
How do I list the elements within the dictionaries of this list?