I am new to python and django. i must consume a web service and the response of web service is json like this:
[{'name': 'gfile1.txt', 'length': 448, 'createdDate': '1582229671352'}, {'name': 'gfile2.txt', 'length': 86, 'createdDate': '1582229671474'}, {'name': 'soc-LiveJournal1.txt', 'length': 1080598042, 'createdDate': '1582229715227'}]
also i have a class according to this json result: the below is class definition:
class DataParameter:
def __init__(self, name, size, _createdDate):
self.filename = name
self.filesize = size
self.createdDate = _createdDate
what should i do is: i must convert the above json to list of DataParameter class. Can you help me to do this? Thanks