My problem is that my csv file has data stored in form of a json file. I now need to extract that data in the most efficient way to create objects that store the data.
My csv-file looks like this:
1. 2022-09-19,"{
2. "timestamp": 41202503,
3. "machineId": 3567,
4. "status": 16,
5. "isActive": false,
6. "scanWidth": 5.0,
7. }"
8. 2022-09-19,"{
9. "timestamp": 41202505,
10. "machineId": 3568,
11. "status": 5,
12. "isActive": true,
13. "scanWidth": 1.4,
14. }"
15. 2022-09-19,"{
16. "timestamp": 41202507,
17. "machineId": 3569,
18. "status": 12,
19. "isActive": false,
20. "scanWidth": 6.2,
21. }"
In my project I would have class called "MachineData" with all the relevant properties. My question is now, how can I extract the data stored in this csv file?
Thanks again for helping!