Connector for JSON (Legacy)
The JSON connector allows the retrieval and processing of JSON files, either from a disk, a Text, or from a defined URL.
The supported JSON structures are discussed here.
- Select the JSON File Source.
- Select either the period (.) or comma (,) as the Decimal Separator.
- Set the File Encoding to use:
- UTF-8
- UTF-16
- US-ASCII
- Windows-1252
- Enter the Record Path which allows the identification of multiple records within the JSON document (e.g., myroot.items.item). This property can be parameterized.
- Select the Array Handling setting.
- Click
to the fetch the schema based on the connection details. Consequently, the list of columns with the data type found from inspecting the first ‘n’ rows of the input data source is populated and the Save button is enabled.
- You can also opt to load or save a copy of the column definition.
-
- Click
to add columns and specify their properties:
Property Description Name
The column name of the source schema.
JsonPath
The JsonPath of the source schema.
Type
The data type of the column. Can be a Text, Numeric, or Time
Date Format
The format when the data type is Time.
Enabled
Determines whether the message field should be processed.
NOTE: To parse and format times with higher than millisecond precision, the format string needs to end with a period followed by sequence of upper case S. There can be no additional characters following them.
For example: yyyy-MM-dd HH:mm:ss.SSSSSS
To delete a column, check its
or all the column entries, check the topmost
, then click
.
-
Date/Time values of output data and Date/Time inputs, where supported, is by default unchanged.
You can opt to define the Show in Timezone and Source Timezone settings.
(c) 2013-2024 Altair Engineering Inc. All Rights Reserved.