What\'s the fastest way in Python (Django) to create a JSON based upon a Django queryset. Note that parsing it in the template as proposed here is not an option.
The ba
Organise you data into nested dictionaries or lists then call the json dump method:
import json data = ['foo', {'bar': ('baz', None, 1.0, 2)}] json.dump(data)