@terascope/file-asset-apis / interfaces / JSONReaderConfig
Interface: JSONReaderConfig
Defined in: interfaces.ts:156
Extends
Properties
Property | Type | Description | Overrides | Inherited from | Defined in |
---|---|---|---|---|---|
compression? | Compression | - | - | ChunkedFileReaderConfig .compression | interfaces.ts:38 |
fields? | string [] | List of fields to process, will default to all of them Default [] | - | - | interfaces.ts:163 |
file_per_slice? | boolean | - | - | ChunkedFileReaderConfig .file_per_slice | interfaces.ts:44 |
format | json | - | ChunkedFileReaderConfig .format | - | interfaces.ts:157 |
line_delimiter? | string | Specifies the ending line format, override for non unix like file endings Default \n | - | ChunkedFileReaderConfig .line_delimiter | interfaces.ts:43 |
on_reject_action? | string | Parameter to determine how the default rejectFn works, may be set to "throw", "log", or "none" Default "throw" | - | ChunkedFileReaderConfig .on_reject_action | interfaces.ts:50 |
rejectFn? | (input , err ) => null | Can pass in your own custom error handler, if you do so it will ignore the "on_reject_action" configuration which only works for the default error handler | - | ChunkedFileReaderConfig .rejectFn | interfaces.ts:25 |
tryFn? | (fn ) => (input ) => null | DataEntity <Record <string , any >, _DataEntityMetadata <Record <string , any >>> | can pass in your own custom try/catch logic or use the default | - | ChunkedFileReaderConfig .tryFn | interfaces.ts:20 |