I am sending a tuple as my variable to javascript. But i could not find a way. I am using bottle framework.
+2
A:
A related tip to add to @Oil's point, Bottle returns JSON by default of you return a dict:
@route('/resource.json')
def resource_json():
response = dict(
data=('tuple', 'of', 'things'))
return response
Tim McNamara
2010-07-30 11:53:38