Skip to content

[source]

NDJSON#

NDJSON or Newline Delimited JSON files contain rows of data encoded in Javascript Object Notation (JSON) arrays or objects. The format is like a mix of JSON and CSV and has the advantage of retaining data type information and being read into memory incrementally.

Note

Empty lines are ignored by the parser.

Interfaces: Extractor, Writable

Parameters#

# Name Default Type Description
1 path string The path to the NDJSON file.

Example#

use Rubix\ML\Extractors\NDJSON;

$extractor = new NDJSON('example.ndjson');

Additional Methods#

This extractor does not have any additional methods.


Last update: 2021-03-27