Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 586 Bytes

Json.md

File metadata and controls

27 lines (19 loc) · 586 Bytes

JSON

Extracts data from a JavaScript Object Notation file.

/** @var \Wizaplace\Etl\Extractors\Json $json */
$etl->extract($json, 'path/to/file.json', $options);

Options

Columns

Columns that will be extracted. If null, the first level key/value pairs of the object in each iteration will be used.

Type Default value
array null

For more control over the columns, you may use JSON path:

$options = ['columns' => [
    'id' => '$..bindings[*].id.value',
    'name' => '$..bindings[*].name.value',
]];