Split a vector of JSON strings into a list of R objects.
split_ndjson(x)
A list with the same length as x
, each containing two character vectors: keys
and values
.
A vector of JSON strings.
if (FALSE) {
split_ndjson(c('{"a": "1", "b": "2"}', '{"a": "3", "b": "4", "c": "5"}'))
}
Run the code above in your browser using DataLab