print(type(directreceipts))
print(directreceipts)
o/p
1
2
<class 'list'>
['{\n "quantityOfUnits": 1500,\n "ownerOnDespatch": "100038",\n "packSize": 3\n}', '{\n "quantityOfUnits": 2500,\n "ownerOnDespatch": "100038",\n "packSize": 4\n}']
want to convert the list of strings to dictionary and access the values and also want to eleminate the \n.