У меня в файле csv есть следующее, я хотел бы преобразовать в список ..
{"received":1589294883,"guid":"0CA2F400004","eventtype":"basic","payload":{"time":1589294882,"commodity":"elec","updatetime":1589294882,"total":{"units":"kWh","cons":1625591},"status":{"disconnect":false}}}
{"received":1589294888,"guid":"0CA2F400004","eventtype":"basic","payload":{"time":1589294887,"commodity":"elec","updatetime":1589294887,"total":{"units":"kWh","cons":3769124},"status":{"disconnect":false}}}
{"received":1589294892,"guid":"0CA2F400004","eventtype":"basic","payload":{"time":1589294889,"commodity":"elec","updatetime":1589294889,"total":{"units":"kWh","cons":949678},"status":{"disconnect":false}}}
{"received":1589294898,"guid":"0CA2F400004","eventtype":"basic","payload":{"time":1589294897,"commodity":"elec","updatetime":1589294897,"total":{"units":"kWh","cons":5137203},"status":{"disconnect":false}}}
{"received":1589294902,"guid":"0CA2F400004","eventtype":"basic","payload":{"time":1589294900,"commodity":"elec","updatetime":1589294900,"total":{"units":"kWh","cons":968410},"status":{"disconnect":false}}}
кому-то удалось это сделать, но не показал, как. если я смогу преобразовать это в правильный формат, я смогу структурировать его, используя:
library(jsonify)
jsonify::from_json( json_file )
jsonlite::fromJSON( json_file )
Спасибо