powered by
Parse a vector of JSON into a list
parse_json_vector( x, .na = json_na_error(), .null = NULL, simplifyVector = TRUE, simplifyDataFrame = FALSE, simplifyMatrix = FALSE, flatten = FALSE, bigint_as_char = bigint_default(), ... )
a scalar JSON character
Value to return if x is NA. By default an error of class jsontools_error_na_json is thrown.
x
NA
jsontools_error_na_json
Return the prototype of .null if x is NULL or a zero length character
.null
NULL
passed on to jsonlite::parse_json.
jsonlite::parse_json
Parse big integers as character? The option jsontools.bigint_as_char is used as default.
jsontools.bigint_as_char
A list of the same length as x.
# NOT RUN { parse_json_vector(x = c('"a"', '"b"')) parse_json_vector(x = c('"a"', '["b", "c"]')) parse_json_vector(x = c('"a"', NA), .na = 1) # }
Run the code above in your browser using DataLab