Using jsonlite package I am able to write a dataframe to json e.g.
library(jsonlite)
library(tidyverse)
mtcars %>% toJSON() %>% write('data/mtcars.json')
diamonds %>% toJSON() %>% write('data/diamonds.json')
My question is, is it possible to add both mtcars and diamonds to the same json object?