Serialize a list of dictionaries in Python
[{'name':'John', 'age':30},
{'name':'Paul', 'age':22}]
import json

data = [{'name':'John', 'age':30},
{'name':'Paul', 'age':22}]

serialized_data = json.dumps(data)
print(serialized_data)