R convert dataframe to JSON

后端 未结 4 1976
我在风中等你
我在风中等你 2020-11-28 09:24

I have a dataframe that I\'d like to convert to json format:

my data frame called res1:

library(rjson)

structure(list(id = c(1, 2, 3, 4, 5), value =         


        
4条回答
  •  醉酒成梦
    2020-11-28 09:54

    Now you can easily just call jsonlite::write_json() directly on the dataframe.

提交回复
热议问题