I am using flask and from my understanding JSON format consists of two types which are arrays and objects. After converting python variable into something like:
data = [{key:value}]
why do I always have to
return jsonify(data)
in order to send it back to js?
datais not JSON?nulla value for an absent value. And yes, it also has Arrays (a list of arbitrary values) and Objects (a set of unordered key-value pairs where the key is always a string)