R语言读取json文件
json文件如下:{"job_title": "商务经理(002100)(006262)", "job_company": "江苏先声药业有限公司", "job_address": "异地招聘", "job_salary": "1-1.5万/月", "job_href": "https://jobs.51job.com/nanjing-xwq/112011950.html?s=02"}
读取json文件如下:
install.packages("rjson")
install.packages("jsonlite")
library(rjson)
library(jsonlite)
data<-jsonlite::stream_in(file("myjob100.json"),pagesize = 100)
str(data)
head(data)
页:
[1]