# A simple string
'"string"' %>% json_structure
# A simple object
'{"name": "value"}' %>% json_structure
# A complex array
'[{"a": 1}, [1, 2], "a", 1, true, null]' %>% json_structure
# A sample of structure rows from a company
library(dplyr)
companies[1] %>% json_structure %>% sample_n(5)
Run the code above in your browser using DataLab