https://tutorial.eyehunts.com/python/python-list-of-objects-to-json-example-code/
Python list of objects to JSON | Example code