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. Convert Python list of objects to JSON… Read More »Python list of objects to JSON | Example code