split_ndjson: Convert a ndJSON object

View source: R/split_json.R

split_ndjsonR 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)

loggit2 documentation built on June 8, 2025, 10:26 a.m.