我有以下查询集:
prices = Price.objects.filter(product=product).values_list('price', 'valid_from')
我怎样才能得到“json”的价格
{"aaData": [
["70.1700", "2007-01-01"], # price, valid_form
["72.6500", "2008-01-01"], # price, valid_form
["74.5500", "2009-01-01"], # price, valid_form
["76.6500", "2010-01-01"]
]}