diff --git a/NEWS.md b/NEWS.md index 48c1531..7955c4e 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,9 @@ + +# yyjsonr 0.1.18.9003 2024-03-13 + +* call `normalizePath()` on all file paths + # yyjsonr 0.1.18.9002 2024-03-07 * Increase maximum number of allowed data.frame columns (during parsing) to 2048 diff --git a/R/json.R b/R/json.R index bf1970b..dd405ae 100644 --- a/R/json.R +++ b/R/json.R @@ -64,7 +64,7 @@ read_json_raw <- function(raw_vec, opts = list(), ...) { read_json_file <- function(filename, opts = list(), ...) { .Call( parse_from_file_, - filename, + normalizePath(filename), modify_list(opts, list(...)) ) } @@ -143,7 +143,7 @@ write_json_file <- function(x, filename, opts = list(), ...) { .Call( serialize_to_file_, x, - filename, + normalizePath(filename), modify_list(opts, list(...)) ) @@ -173,7 +173,7 @@ validate_json_file <- function(filename, verbose = FALSE, opts = list(), ...) { .Call( validate_json_file_, - filename, + normalizePath(filename), verbose, opts )