x=json.dumps(result)
print(x)
Output:
['Client Name:'Sriram',
'Trade Date :'03-09-2019',
'Security :CERAMICIST-ICICLE,NAT CO - PHARMA',
'Quantity:14,2',
'Net Rate: 145.7500,552.3725',
'Buy/Sell :'Buy ', 'Buy',
'Net Total:2040.5000,1104.7450']
and I want to convert this list into a json format like this:
{'Client Name': Sriram',
'Trade Date' :03-09-2019',
'Security' :['CERAMICIST-ICICLE','NAT CO - PHARMA',
'Quantity':'14,2',
'Net Rate':['145.7500','552.3725'],
'Buy/Sell':['Buy','Sell',
'Net Total':['2040.5000','1104.7450']