Learn R Programming

ndjson (version 0.9.0)

Wicked-Fast Streaming 'JSON' ('ndjson') Reader

Description

Streaming 'JSON' ('ndjson') has one 'JSON' record per-line and many modern 'ndjson' files contain large numbers of records. These constructs may not be columnar in nature, but it is often useful to read in these files and "flatten" the structure out to enable working with the data in an R 'data.frame'-like context. Functions are provided that make it possible to read in plain 'ndjson' files or compressed ('gz') 'ndjson' files and either validate the format of the records or create "flat" 'data.table' structures from them.

Copy Link

Version

Install

install.packages('ndjson')

Monthly Downloads

3,715

Version

0.9.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

October 17th, 2022

Functions in ndjson (0.9.0)

stream_in

Stream in & flatten an ndjson file into a data.table
ndjson

Wicked-fast Streaming JSON ('ndjson) Reader
flatten

Flatten a character vector of individual JSON lines into a data.table
validate

Validate ndjson file