split_ndjson {loggit2}R Documentation

Convert a ndJSON object

Description

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

Usage

split_ndjson(x)

Arguments

x

A vector of JSON strings.

Value

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

Examples

## Not run: 
  split_ndjson(c('{"a": "1", "b": "2"}', '{"a": "3", "b": "4", "c": "5"}'))

## End(Not run)

[Package loggit2 version 2.3.1 Index]