Having this json
[{'id': '16166cf3', 'quote': 'a.'}, {'id': '16166cfb', 'quote': 'b.'} ]
And this Class
class Quotes:
def __init__(self, id, quote):
self.id = id
self.quote = quote
How can I transform the json arrayList into a list of Quotes??
For now I have this
with open("../json/quotes.json") as json_file:
quote_list = json.load(json_file)
print(quote_list)
Regards