R/study_to_json.R
study_to_json.Rd
Convert a study object to a JSON string
study_to_json(study, data_values = TRUE)
A study list object with class scivrs_study
Whether to include data values in the JSON file (defaults to TRUE)
A prettified JSON string
study() %>% study_to_json() #> { #> "name": "Demo Study", #> "info": [], #> "authors": [], #> "hypotheses": [], #> "methods": [], #> "data": [], #> "analyses": [] #> } #>