I am having trouble (I\'m a beginner in python) to assign an array to JSON. For example, while using python console it works fine -
>>> data = [ ...