I wrote some data from Spark to a JSON file, and I'm trying to import it into R.
I cannot import it using any traditional JSON packages in R:
library("jsonlite")
bids <- fromJSON("win_rate_sample.json")
I get the following error:
Error in feed_push_parser(readBin(con, raw(), n), reset = TRUE) :
parse error: trailing garbage
X","domain":"ifunny_premium"}{"win":0,"bid_price":0.75,"size
(right here)
How can I get this file in R?
source
share