I have the following csv file.
Occurrences,post_title,ID, System
1, Test 7, 34, Abc
2, Test 9, 55, Xyz
5, Test 11, 87, Pqy
7, Test 3, 71, Cde
Ask: I want to iterate through a loop and send each row as JSON block to an API. For example, first iteration I want to send as following.
{"occurrences": "1", "post_title": "Test 7", "ID" : "34", "System" : "Abc"}
The second iteration I want to send the following.
{"occurrences": "2", "post_title": "Test 9", "ID" : "55", "System" : "Xyz"}
and so forth......
Could you please help in Python the best way to achieve this?