Fixed Width Flat File

Frends.FixedWidthFlatFile.CreateFromJson / 1.0.0

Summary

Converts a JSON array of objects to fixed-width records.

Details

Frends version
5.7 and newer
Agent
Crossplatform
Target framework
net8.0

Essential parameters.

Name Type Default Example Description
SourceType DataLocation String String

Whether the input JSON is provided as a string or read from a file.

Possible values:

  • String: Data is handled as a string.
  • File: Data is handled as a file.
Json String – [{"Name":"Veijo","StartDate":"2018-05-27T00:00:00"}]

JSON array of objects to write. Each object property is matched to a column by name. Missing and null properties are written as spaces; additional properties are ignored.

JsonFilePath String – C:\input\data.json

Path to a file containing the JSON array of objects.

ColumnSpecifications ColumnSpecification[] – [{"Name":"Name","Type":"String","Length":8},{"Name":"StartDate","Type":"DateTime","DateTimeFormat":"yyyyMMdd","Length":8}]

Column definitions in the order they appear in each fixed-width record.

IncludeHeaderRow Boolean False false

Whether to include a fixed-width header row containing the column names.

Culture String – fi-FI

Culture used to format numeric and date output. JSON input values are always parsed using invariant culture. An empty value uses invariant culture.

An unhandled error has occurred. Reload 🗙
Reconnecting… Connection lost.