Error in json file readlines

Unable to authenticate the google speech api
In addition: Warning message:
In readLines("/Users/rajaathota72/Desktop/key.json") :
incomplete final line found on '/Users/rajaathota72/Desktop/key.json'

apicall<-fromJSON(paste(readLines("/Users/rajaathota72/Desktop/key.json"),collapse=""))
Error: parse error: invalid object key (must be a string)
oob","http://localhost"], }}
(right here) ------^
In addition: Warning message:
In readLines("/Users/rajaathota72/Desktop/key.json") :
incomplete final line found on '/Users/rajaathota72/Desktop/key.json'
gl_auth(apicall)
Error in fromJSON(json_file) : object 'apicall' not found

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.