I have a dataframe where one of the columns is in jsonlines format (I think) and i can't manage to parse it and have tried a few different methods but end up with a trailing garbage error. Has anyone dealt with this before? I'm not sure why it isn't working.
library(tidyjson)
ff <- read.csv("https://raw.githubusercontent.com/HaydenSchilling/Example_code_and_data/master/testjson.csv")
ff
json_as_df <- ff %>% as.tbl_json(json.column = "EffortData")
results in:
Error: parse error: trailing garbage
"{"BoatUnit": "BFM", "Electrofishi
(right here) ------^