Options Extractor¶
Extracts data from a provided JSON string using a console option, pipeline configuration, or a passed parameter to the Springbok facade.
Note: The console option overrides the jsonData from the pipeline configuration.
Configuration¶
Name |
Type |
Description |
|---|---|---|
|
Attribute |
JSON data to extract |
|
Attribute |
Number of rows extracted at once (default: 1000) |
Example¶
Pipeline configuration¶
<options /> <!-- No attributes needed if options should be provided by the console command -->
<options jsonData='[{"name": "John Doe", "age": 30}, {"name": "Jane Smith", "age": 25}]' bulkSize="100" />
Console usage¶
console springbok:run --jsonData='[{"name": "John Doe", "age": 30}, {"name": "Jane Smith", "age": 25}]' options_extractor_test
Springbok facade usage¶
$this->springbokFacade->runByName('options_extractor_test', ['jsonData' => '[{"name": "John Doe", "age": 30}, {"name": "Jane Smith", "age": 25}]']);
Output data¶
name |
age |
|---|---|
John Doe |
30 |
Jane Smith |
25 |