Convert a study object to a JSON string

study_to_json(study, data_values = TRUE)

Arguments

study

A study list object with class scivrs_study

data_values

Whether to include data values in the JSON file (defaults to TRUE)

Value

A prettified JSON string

Examples


study() %>% study_to_json()
#> {
#>     "name": "Demo Study",
#>     "info": [],
#>     "authors": [],
#>     "hypotheses": [],
#>     "methods": [],
#>     "data": [],
#>     "analyses": []
#> }
#>