tutorial.eyehunts.com
Python list of objects to JSON | Example code
You can use a list comprehension to produce a list of dictionaries, then convert that using json.dumps() function.
Rohit