Is there a simple way in python/flask to jsonify an array of strings as a key/value pair?
So far I understood, that I can jsonify with following code:
fruits = ["apple", "pear", "melon"]
return jsonify(fruits)
which returns
["apple", "pear", "melon"]
Now, what is the simplest way to get this as a key/value like
{
"fruits": ["apple", "pear", "melon"]
}