Learn R Programming

loggit2 (version 2.3.1)

split_ndjson: Convert a ndJSON object

Description

Split a vector of JSON strings into a list of R objects.

Usage

split_ndjson(x)

Value

A list with the same length as x, each containing two character vectors: keys and values.

Arguments

x

A vector of JSON strings.

Examples

Run this code
if (FALSE) {
  split_ndjson(c('{"a": "1", "b": "2"}', '{"a": "3", "b": "4", "c": "5"}'))
}

Run the code above in your browser using DataLab