Skip to main content

@terascope/file-asset-apis / interfaces / JSONReaderConfig

Interface: JSONReaderConfig

Defined in: interfaces.ts:156

Extends

Properties

PropertyTypeDescriptionOverridesInherited fromDefined in
compression?Compression--ChunkedFileReaderConfig.compressioninterfaces.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_sliceinterfaces.ts:44
formatjson-ChunkedFileReaderConfig.format-interfaces.ts:157
line_delimiter?stringSpecifies the ending line format, override for non unix like file endings Default \n-ChunkedFileReaderConfig.line_delimiterinterfaces.ts:43
on_reject_action?stringParameter to determine how the default rejectFn works, may be set to "throw", "log", or "none" Default "throw"-ChunkedFileReaderConfig.on_reject_actioninterfaces.ts:50
rejectFn?(input, err) => nullCan 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.rejectFninterfaces.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.tryFninterfaces.ts:20