in my view I am generating a json dump:
def myview:
...
data = list(queryset) # a query set of values
json_dump = simplejson.dumps(data)
...
return render_to_response(request, 'results.html', { 'json_dump' : json_dump})
my template references a javascript file:
$(document).ready(function() {
// some stuff involving the json_dump var
...
};
My question is, seeing as I cannot pass json_dump to $(document).ready(function() directly, what is the best way to get the json_dump data into the js?