I'm trying to do sports analytics API and I'm getting an error when I tried to run the code "data" that says. My code is also below.
"Error: lexical error: invalid char in json text.
(right here) ------^.
res<-GET("https://www.landofbasketball.com/championships/year_by_year.htm") #response of the API server to my request
data<-fromJSON(rawToChar(res$content)) #conver raw Unicode to character vecto