How to export data into json format using R?

r
json

#1

Hello,

I want to export a part of my data frame in R into json format so that I can use it for visualization purposes using Javascript. How can I do this? Which package/functions to use?

Thanks


#2

toJSON function from jsonlite package