Skip to contents

Create a directory of JSON files from a CSV file.

Usage

csv_to_json_files(csv_path, json_dir, name_field, use_extension = FALSE)

Arguments

csv_path

Path to the CSV file.

json_dir

Path to the directory for saving the JSON files.

name_field

Name of the field in the CSV file that contains the names for each JSON file. All values in this field must be unique.

use_extension

If there is a column in the CSV file called `extension`, should it be used to produced json filenames of the form `value-in-name-field.value-in-extension-field.json`?