Read json files associated with trials from paths stored in supplied columns (with top-level directory removed). #' Column `directory` must be present in dataframe. Function uses `jsonlite::read_json` to read files.
read_json_files(
data,
data_dir,
.cols = ends_with("_json_location_0"),
drop_tld = TRUE,
...
)