문제

I used rjson and do this JSON <- lapply(data$toParse, fromJSON)

my toParse has 600k rows of simple/short JSON.

However, it is very slow possibly because fromJSON doesn't vectorize operation so I have to use lapply.

I am wondering if there is any better way for parsing a list of JSON?

도움이 되었습니까?

해결책

What about pasting the text into an array and parsing, rjson::fromJSON(sprintf("[%s]", paste(data$toParse, collapse=",")))?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top