I am working on Flask app where I need to return list as response, how I can output as key with multiple values.
a = [1,2,3]
return jsonify({ 'List': a })
Output
{
"Lsit":[1,2,3]
}
How do i get
{
"List": ["1", "2", "3"],
}