Checks if a JSON string is compliant with the expected schema for a directory structure.
Usage
validate_dir_json(json_data)
Arguments
- json_data
A JSON string representing the directory's contents.
Value
TRUE if valid, otherwise throws an error.
Examples
if (FALSE) { # \dontrun{
# Validate a JSON string for directory structure
validate_dir_json(json_str)
} # }